mz-portal-strong3.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # spring配置
  2. spring:
  3. redis:
  4. host: 10.16.4.12
  5. port: 6379
  6. password:
  7. datasource:
  8. druid:
  9. stat-view-servlet:
  10. enabled: true
  11. loginUsername: admin
  12. loginPassword: 123456
  13. dynamic:
  14. druid:
  15. initial-size: 5
  16. min-idle: 5
  17. maxActive: 20
  18. maxWait: 60000
  19. timeBetweenEvictionRunsMillis: 60000
  20. minEvictableIdleTimeMillis: 300000
  21. validationQuery: SELECT 1 FROM DUAL
  22. testWhileIdle: true
  23. testOnBorrow: false
  24. testOnReturn: false
  25. poolPreparedStatements: true
  26. maxPoolPreparedStatementPerConnectionSize: 20
  27. filters: stat,slf4j
  28. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  29. datasource:
  30. # 主库数据源
  31. master:
  32. driver-class-name: com.mysql.cj.jdbc.Driver
  33. url: jdbc:mysql://121.36.73.159:56612/mz-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  34. username: dev
  35. password: sckj2022@123
  36. # 从库数据源
  37. slave:
  38. driver-class-name: com.mysql.cj.jdbc.Driver
  39. url: jdbc:mysql://10.16.4.12:3306/mz-search?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  40. username: search
  41. password: sckj2022@123
  42. # seata: true # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
  43. # seata配置
  44. seata:
  45. # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启
  46. enabled: false
  47. # Seata 应用编号,默认为 ${spring.application.name}
  48. application-id: ${spring.application.name}
  49. # Seata 事务组编号,用于 TC 集群名
  50. tx-service-group: ${spring.application.name}-group
  51. # 关闭自动代理
  52. enable-auto-data-source-proxy: false
  53. # 服务配置项
  54. service:
  55. # 虚拟组和分组的映射
  56. vgroup-mapping:
  57. ruoyi-system-group: default
  58. config:
  59. type: nacos
  60. nacos:
  61. serverAddr: 10.16.4.12:8848
  62. group: SEATA_GROUP
  63. namespace:
  64. registry:
  65. type: nacos
  66. nacos:
  67. application: seata-server
  68. server-addr: 10.16.4.12:8848
  69. namespace:
  70. # mybatis配置
  71. mybatis-plus:
  72. # 搜索指定包别名
  73. typeAliasesPackage: com.ruoyi
  74. mapperPackage: com.ruoyi..mapper
  75. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  76. mapperLocations: classpath*:mapper/**/*.xml
  77. global-config.db-config:
  78. id-type: assign_uuid
  79. select-strategy: not_empty
  80. # swagger配置
  81. swagger:
  82. title: 系统模块接口文档
  83. license: Powered By ruoyi
  84. licenseUrl: https://ruoyi.vip