application.yml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. server:
  2. port: 8086
  3. # 应用名称
  4. spring:
  5. profiles:
  6. # active: dev #开发环境配置文件
  7. active: test #测试环境配置文件
  8. # active: pro #生产环境配置文件
  9. application:
  10. name: student_portrait
  11. datasource:
  12. # driver-class-name: com.mysql.cj.jdbc.Driver
  13. # url: jdbc:mysql://172.16.20.45:3306/activerecord?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  14. # username: root
  15. # password: Chuanghai_2021.
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. url: jdbc:mysql://172.16.20.69:3306/student_portrait?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  18. username: root
  19. password: chuanghai@2022
  20. servlet:
  21. multipart:
  22. enabled: true
  23. file-size-threshold: 0
  24. max-file-size: 10MB
  25. max-request-size: 10MB
  26. redis:
  27. host: 127.0.0.1
  28. port: 6379
  29. # password: root@123456 没有设置密码
  30. database: 0
  31. timeout: 20000
  32. cache:
  33. redis:
  34. time-to-live: 20000 #设置缓存数据的过期时间
  35. cache-null-values: false #是否缓存空值
  36. #logging:
  37. # # 设置logback.xml位置
  38. # # config: classpath:logs/logback.xml
  39. # # 设置log4j.properties位置
  40. # config:
  41. # classpath: logs/logback.xml
  42. mybatis-plus:
  43. configuration:
  44. # 驼峰命名和底杠命名自动转换
  45. map-underscore-to-camel-case: true
  46. # Mybatis默认简单日志
  47. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #mybatis 的运行日志,测试时需注释
  48. # MyBatis 自动映射策略,通过该配置可指定 MyBatis 是否并且如何来自动映射数据表字段与对象的属性,总共有 3 种可选值:
  49. # AutoMappingBehavior.NONE:不启用自动映射
  50. # AutoMappingBehavior.PARTIAL:只对非嵌套的 resultMap 进行自动映射
  51. # AutoMappingBehavior.FULL:对所有的 resultMap 都进行自动映射
  52. auto-mapping-behavior: full
  53. global-config:
  54. db-config:
  55. # MybatisPlus 设置全局主键生成策略:自增
  56. id-type: auto
  57. # 逻辑删除字段名
  58. logic-delete-field: isDeleted
  59. # 逻辑删除字面值:未删除为0
  60. logic-not-delete-value: 0
  61. # 逻辑删除字面值:删除为1
  62. logic-delete-value: 1
  63. #微校相关配置
  64. weixiao:
  65. app_key: DB60250B489345ED
  66. response_type: code
  67. scope: snsapi_sso
  68. ocode: 1015730314
  69. app_secret: 68ED5D4B98DD8817C1558A8FCAF9D1BF
  70. redirect_uri: http://5d519a3d.cpolar.top/
  71. #远程IP端口、接口
  72. decisionEngine:
  73. url:
  74. #百胜人员识别
  75. #product: http://39.108.175.59:9090/device/sync_person
  76. product: http://39.108.175.59:5389/device/sync_person
  77. #二维码的门禁记录服务地址
  78. qrcode: https://chtech.ncjti.edu.cn/access-control/ncjtEntranceGuard/getTrafficRecordViewPageList
  79. #热水使用记录
  80. waterUrl: http://192.168.1.34:8080/HotWaters/waterfindConsume.action
  81. nvr:
  82. nvrip: 172.22.45.25
  83. nvrport: 80
  84. nvruname: admin
  85. nvrpwd: ncjtxy@2021