train-resource-strong3.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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配置
  45. seata:
  46. # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启
  47. enabled: false
  48. # Seata 应用编号,默认为 ${spring.application.name}
  49. application-id: ${spring.application.name}
  50. # Seata 事务组编号,用于 TC 集群名
  51. tx-service-group: ${spring.application.name}-group
  52. # 关闭自动代理
  53. enable-auto-data-source-proxy: false
  54. # 服务配置项
  55. service:
  56. # 虚拟组和分组的映射
  57. vgroup-mapping:
  58. ruoyi-system-group: default
  59. config:
  60. type: nacos
  61. nacos:
  62. serverAddr: 172.17.0.1:8748
  63. group: SEATA_GROUP
  64. namespace:
  65. registry:
  66. type: nacos
  67. nacos:
  68. application: seata-server
  69. server-addr: 172.17.0.1:8748
  70. namespace:
  71. # mybatis配置
  72. mybatis:
  73. # 搜索指定包别名
  74. typeAliasesPackage: com.ruoyi.resource
  75. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  76. mapperLocations: classpath:mapper/**/*.xml
  77. # swagger配置
  78. swagger:
  79. title: 代码生成接口文档
  80. license: Powered By ruoyi
  81. licenseUrl: https://ruoyi.vip
  82. # 本地文件上传
  83. file:
  84. domain: http://172.17.0.1:9300
  85. path: /home/ruoyi/uploadPath
  86. prefix: /statics