application.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. # 单数据源配置
  12. # datasource:
  13. ## driver-class-name: com.mysql.cj.jdbc.Driver
  14. ## url: jdbc:mysql://172.16.20.45:3306/activerecord?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  15. ## username: root
  16. ## password: Chuanghai_2021.
  17. # driver-class-name: com.mysql.cj.jdbc.Driver
  18. # url: jdbc:mysql://172.16.20.69:3306/student_portrait?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  19. # username: root
  20. # password: chuanghai@2022
  21. #多数据源配置
  22. datasource:
  23. dynamic:
  24. primary: mysql1 #设置默认的数据源或者数据源组,默认值即为mysql1
  25. strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
  26. datasource:
  27. mysql1:
  28. username: root
  29. password: chuanghai@2022 #服务器密码
  30. url: jdbc:mysql://172.16.20.69:3306/student_portrait?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  31. # password: root #本地密码
  32. # url: jdbc:mysql://127.0.0.1:3306/student_portrait?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  33. driver-class-name: com.mysql.cj.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
  34. mysql2:
  35. url: jdbc:mysql://172.16.20.45:3306/smartschool_bigdata?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  36. username: root
  37. password: Chuanghai_2021.
  38. driver-class-name: com.mysql.cj.jdbc.Driver
  39. mysql3:
  40. url: jdbc:mysql://172.16.40.249:3306/db_libsp_sync?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  41. username: ods
  42. password: '@ods123456'
  43. driver-class-name: com.mysql.cj.jdbc.Driver
  44. mysql4:
  45. url: jdbc:mysql://172.16.20.77:3306/memdb?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  46. username: getcourse
  47. password: UUtfNu3jVQy3ZAp8
  48. driver-class-name: com.mysql.cj.jdbc.Driver
  49. servlet:
  50. multipart:
  51. enabled: true
  52. file-size-threshold: 0
  53. max-file-size: 10MB
  54. max-request-size: 10MB
  55. redis:
  56. host: 127.0.0.1
  57. port: 6379
  58. password: chuanghai_2023. #没有设置密码
  59. database: 0
  60. timeout: 20000
  61. cache:
  62. redis:
  63. time-to-live: 20000 #设置缓存数据的过期时间
  64. cache-null-values: false #是否缓存空值
  65. #logging:
  66. # # 设置logback.xml位置
  67. # # config: classpath:logs/logback.xml
  68. # # 设置log4j.properties位置
  69. # config:
  70. # classpath: logs/logback.xml
  71. mybatis-plus:
  72. configuration:
  73. # 驼峰命名和底杠命名自动转换
  74. map-underscore-to-camel-case: true
  75. # Mybatis默认简单日志
  76. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #mybatis 的运行日志,测试时需注释
  77. # MyBatis 自动映射策略,通过该配置可指定 MyBatis 是否并且如何来自动映射数据表字段与对象的属性,总共有 3 种可选值:
  78. # AutoMappingBehavior.NONE:不启用自动映射
  79. # AutoMappingBehavior.PARTIAL:只对非嵌套的 resultMap 进行自动映射
  80. # AutoMappingBehavior.FULL:对所有的 resultMap 都进行自动映射
  81. auto-mapping-behavior: full
  82. global-config:
  83. db-config:
  84. # MybatisPlus 设置全局主键生成策略:自增
  85. id-type: auto
  86. # 逻辑删除字段名
  87. logic-delete-field: isDeleted
  88. # 逻辑删除字面值:未删除为0
  89. logic-not-delete-value: 0
  90. # 逻辑删除字面值:删除为1
  91. logic-delete-value: 1
  92. #微校相关配置
  93. weixiao:
  94. app_key: DB60250B489345ED
  95. response_type: code
  96. scope: snsapi_sso
  97. ocode: 1015730314
  98. app_secret: 68ED5D4B98DD8817C1558A8FCAF9D1BF
  99. redirect_uri: http://5d519a3d.cpolar.top/
  100. #远程IP端口、接口
  101. decisionEngine:
  102. url:
  103. #百胜人员识别
  104. #product: http://39.108.175.59:9090/device/sync_person
  105. product: http://39.108.175.59:5389/device/sync_person
  106. #二维码的门禁记录服务地址
  107. qrcode: https://chtech.ncjti.edu.cn/access-control/ncjtEntranceGuard/getTrafficRecordViewPageList
  108. #热水使用记录
  109. waterUrl: http://192.168.1.34:8080/HotWaters/waterfindConsume.action
  110. #热水登入
  111. hotLogin: http://192.168.1.34:8080/HotWaters/userlog.action
  112. nvr:
  113. nvrip: 172.22.45.25
  114. nvrport: 80
  115. nvruname: admin
  116. nvrpwd: ncjtxy@2021
  117. logging:
  118. level:
  119. com.chuanghai: error