train-education-strong3.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # spring配置
  2. spring:
  3. redis:
  4. host: 10.16.4.12
  5. port: 6379
  6. password:
  7. database: 10
  8. datasource:
  9. druid:
  10. stat-view-servlet:
  11. enabled: true
  12. loginUsername: admin
  13. loginPassword: 123456
  14. allow:
  15. dynamic:
  16. druid:
  17. initial-size: 5
  18. min-idle: 5
  19. maxActive: 20
  20. maxWait: 60000
  21. timeBetweenEvictionRunsMillis: 60000
  22. minEvictableIdleTimeMillis: 300000
  23. validationQuery: SELECT 1 FROM DUAL
  24. testWhileIdle: true
  25. testOnBorrow: false
  26. testOnReturn: false
  27. poolPreparedStatements: true
  28. maxPoolPreparedStatementPerConnectionSize: 20
  29. filters: stat,wall,slf4j
  30. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  31. datasource:
  32. # 主库数据源
  33. master:
  34. driver-class-name: com.mysql.cj.jdbc.Driver
  35. url: jdbc:mysql://121.36.73.159:56612/ceshi-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  36. username: dev
  37. password: sckj2022@123
  38. # 从库数据源
  39. slave:
  40. driver-class-name: com.mysql.cj.jdbc.Driver
  41. url: jdbc:mysql://121.36.73.159:56612/ceshi-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  42. username: dev
  43. password: sckj2022@123
  44. # seata: true # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
  45. # seata配置
  46. seata:
  47. # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启
  48. enabled: false
  49. # Seata 应用编号,默认为 ${spring.application.name}
  50. application-id: ${spring.application.name}
  51. # Seata 事务组编号,用于 TC 集群名
  52. tx-service-group: ${spring.application.name}-group
  53. # 关闭自动代理
  54. enable-auto-data-source-proxy: false
  55. # 服务配置项
  56. service:
  57. # 虚拟组和分组的映射
  58. vgroup-mapping:
  59. ruoyi-system-group: default
  60. config:
  61. type: nacos
  62. nacos:
  63. serverAddr: 172.17.0.1:8748
  64. group: SEATA_GROUP
  65. namespace:
  66. registry:
  67. type: nacos
  68. nacos:
  69. application: seata-server
  70. server-addr: 172.17.0.1:8748
  71. namespace:
  72. # mybatis配置
  73. mybatis:
  74. # 搜索指定包别名
  75. typeAliasesPackage: com.ruoyi.education
  76. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  77. mapperLocations: classpath:mapper/**/*.xml
  78. configuration:
  79. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  80. # swagger配置
  81. swagger:
  82. title: 代码生成接口文档
  83. license: Powered By ruoyi
  84. licenseUrl: https://ruoyi.vip
  85. #微信小程序配置
  86. wx:
  87. eduApp: wxca8d0b33f3ab66fb
  88. messageTemplate: We-jIu1TG7PAKNqlJpe97kI-4xOWyuiHuxYjF7a7Yn4,KOdOmgksakH8_JciGZ0XnpYfwR9ylUwmm0dSXjtCXr0,mRskj-kKFY1n_-x8TW-PmZIEqVCDyIrokhh6i2EgHbQ
  89. miniapp:
  90. configs:
  91. - appid: wxca8d0b33f3ab66fb
  92. secret: 3891a1e73e82f7703f3b3e7d7aa95bc3
  93. token: #微信小程序消息服务器配置的token
  94. aesKey: #微信小程序消息服务器配置的EncodingAESKey
  95. msgDataFormat: JSON
  96. #腾讯云
  97. tencentcloud:
  98. secretId: AKIDUnqc7LK2TdW9UYQ1LOAftqVv3uUptgCR
  99. secretKey: zh8IBoDLDo79uPdaGgofFZcOt62i7F6g
  100. SDKAppID: 1400619182
  101. SDKAppKey: 26f173bacde11c7868dedb11cd7b1190
  102. #短信签名
  103. sign: 吉林长春社区干部学院
  104. #短信模板
  105. templateId: 1269405
  106. #短信失效时间
  107. effectiveTime: 5
  108. # 本地文件上传
  109. file:
  110. domain: http://172.17.0.1:9300
  111. path: /home/ruoyi/uploadPath
  112. prefix: /statics