mrman-service-test.yml 3.7 KB

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