ruoyi-system-strong3.yml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # spring配置
  2. spring:
  3. redis:
  4. host: 10.16.4.12
  5. port: 6379
  6. password:
  7. database: 11
  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/znyl-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/znyl-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.system
  76. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  77. mapperLocations: classpath:mapper/**/*.xml
  78. # swagger配置
  79. swagger:
  80. title: 系统模块接口文档
  81. license: Powered By ruoyi
  82. licenseUrl: https://ruoyi.vip
  83. #腾讯云
  84. tencentcloud:
  85. #全局ID秘钥
  86. publicAppId: 1302740389
  87. publicSecretId: AKIDUnqc7LK2TdW9UYQ1LOAftqVv3uUptgCR
  88. publicSecretKey: zh8IBoDLDo79uPdaGgofFZcOt62i7F6g
  89. #cos存储
  90. cosBucketName: college-file-1302740389
  91. cosRegion: ap-beijing