mrman-service-dev.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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: oracle.jdbc.driver.OracleDriver
  60. platform: oracle
  61. url: jdbc:oracle:thin:@192.168.2.246:1521:orcl
  62. username: ETRACKMRQC
  63. password: ETRACKMRQC
  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. #mybatis
  81. mybatis-plus:
  82. mapper-locations: classpath:/mapper/*Mapper.xml
  83. #实体扫描,多个package用逗号或者分号分隔
  84. typeAliasesPackage: com.diagbot.entity
  85. global-config:
  86. #刷新mapper 调试神器
  87. db-config:
  88. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  89. id-type: id_worker
  90. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  91. field-strategy: not_empty
  92. #驼峰下划线转换
  93. column-underline: true
  94. #数据库大写下划线转换
  95. #capital-mode: true
  96. #刷新mapper 调试神器
  97. refresh-mapper: true
  98. #逻辑删除配置
  99. logic-delete-value: 0
  100. logic-not-delete-value: 1
  101. #自定义填充策略接口实现
  102. #meta-object-handler: com.baomidou.springboot.xxx
  103. #自定义SQL注入器
  104. #sql-injector: com.baomidou.springboot.xxx
  105. configuration:
  106. map-underscore-to-camel-case: true
  107. cache-enabled: false