mrman-service-test.yml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. server:
  2. port: 8833
  3. # 驱动配置信息
  4. spring:
  5. datasource:
  6. druid:
  7. dynamic:
  8. primary: master
  9. druid:
  10. # 连接池的配置信息
  11. # 初始化大小,最小,最大
  12. initialSize: 5
  13. minIdle: 5
  14. maxActive: 20
  15. # 配置获取连接等待超时的时间
  16. maxWait: 60000
  17. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  18. timeBetweenEvictionRunsMillis: 60000
  19. # 配置一个连接在池中最小生存的时间,单位是毫秒
  20. minEvictableIdleTimeMillis: 300000
  21. validationQuery: SELECT 1 FROM DUAL
  22. testWhileIdle: true
  23. testOnBorrow: false
  24. testOnReturn: false
  25. # 打开PSCache,并且指定每个连接上PSCache的大小
  26. poolPreparedStatements: true
  27. maxPoolPreparedStatementPerConnectionSize: 20
  28. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  29. filters.commons-log.connection-logger-name: wall,log4j
  30. share-prepared-statements: true
  31. filter:
  32. stat:
  33. enabled: true
  34. mergeSql: true
  35. log-slow-sql: true
  36. slow-sql-millis: 2000
  37. #监控配置
  38. web-stat-filter:
  39. enabled: true
  40. url-pattern: /*
  41. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  42. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  43. stat-view-servlet:
  44. enabled: true
  45. url-pattern: /druid/*
  46. reset-enable: false
  47. login-username: root
  48. login-password: root
  49. # 数据库配置
  50. datasource:
  51. master:
  52. driver-class-name: com.mysql.cj.jdbc.Driver
  53. platform: mysql
  54. url: jdbc:mysql://192.168.2.241:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
  55. username: root
  56. password: lantone
  57. druid:
  58. initial-size: 5
  59. slave:
  60. driver-class-name: com.mysql.cj.jdbc.Driver
  61. platform: mysql
  62. url: jdbc:mysql://192.168.2.241:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
  63. username: root
  64. password: lantone
  65. druid:
  66. initial-size: 5
  67. cloud:
  68. stream:
  69. bindings:
  70. outputLog:
  71. destination: myLog
  72. # contentType: text/plain # 实体 json string 在传递的类型装换 查看 http://docs.spring
  73. #mq
  74. rabbitmq:
  75. host: 192.168.2.241
  76. port: 5672
  77. username: lantone
  78. password: lantone
  79. publisher-confirms: true
  80. virtual-host: /
  81. #redis
  82. redis:
  83. database:
  84. cache: 8 # cache索引
  85. host: 192.168.2.241 #Redis服务器地址
  86. port: 6379 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
  87. password: lantone # Redis服务器连接密码(默认为空)
  88. lettuce:
  89. pool:
  90. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  91. max-idle: 5 # 连接池中的最大空闲连接
  92. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  93. min-idle: 0 # 连接池中的最小空闲连接
  94. timeout: 20000 # 连接超时时间(毫秒)
  95. #mybatis
  96. mybatis-plus:
  97. mapper-locations: classpath:/mapper/*Mapper.xml
  98. #实体扫描,多个package用逗号或者分号分隔
  99. typeAliasesPackage: com.diagbot.entity
  100. global-config:
  101. #刷新mapper 调试神器
  102. db-config:
  103. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  104. id-type: id_worker
  105. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  106. field-strategy: not_empty
  107. #驼峰下划线转换
  108. column-underline: true
  109. #数据库大写下划线转换
  110. #capital-mode: true
  111. #刷新mapper 调试神器
  112. refresh-mapper: true
  113. #逻辑删除配置
  114. logic-delete-value: 0
  115. logic-not-delete-value: 1
  116. #自定义填充策略接口实现
  117. #meta-object-handler: com.baomidou.springboot.xxx
  118. #自定义SQL注入器
  119. #sql-injector: com.baomidou.springboot.xxx
  120. configuration:
  121. map-underscore-to-camel-case: true
  122. cache-enabled: false
  123. qc.address: http://192.168.2.241:5858