mrman-service-dev.yml 4.4 KB

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