logger-service-pro.yml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. server:
  2. port: 9997
  3. # 驱动配置信息
  4. spring:
  5. datasource:
  6. druid:
  7. driverClassName: com.mysql.jdbc.Driver
  8. driver-class-name: com.mysql.jdbc.Driver
  9. platform: mysql
  10. url: jdbc:mysql://192.168.2.236:3306/sys-log?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false
  11. username: root
  12. password: lantone
  13. # 连接池的配置信息
  14. # 初始化大小,最小,最大
  15. initialSize: 5
  16. minIdle: 5
  17. maxActive: 20
  18. # 配置获取连接等待超时的时间
  19. maxWait: 60000
  20. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  21. timeBetweenEvictionRunsMillis: 60000
  22. # 配置一个连接在池中最小生存的时间,单位是毫秒
  23. minEvictableIdleTimeMillis: 300000
  24. validationQuery: SELECT 1 FROM DUAL
  25. testWhileIdle: true
  26. testOnBorrow: false
  27. testOnReturn: false
  28. # 打开PSCache,并且指定每个连接上PSCache的大小
  29. poolPreparedStatements: true
  30. maxPoolPreparedStatementPerConnectionSize: 20
  31. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  32. filters.commons-log.connection-logger-name: stat,wall,log4j
  33. filter.stat.log-slow-sql: true
  34. filter.stat.slow-sql-millis: 2000
  35. #监控配置
  36. web-stat-filter:
  37. enabled: true
  38. url-pattern: /*
  39. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  40. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  41. stat-view-servlet:
  42. enabled: true
  43. url-pattern: /druid/*
  44. reset-enable: false
  45. login-username: root
  46. login-password: root
  47. cloud:
  48. stream:
  49. bindings:
  50. outputLog:
  51. destination: myLog
  52. # contentType: text/plain # 实体 json string 在传递的类型装换 查看 http://docs.spring
  53. inputLog:
  54. destination: myLog
  55. group: logReceiveGroup # 具体分组 对应 MQ 是 队列名称 并且持久化队列
  56. #mq
  57. rabbitmq:
  58. host: 192.168.2.236
  59. port: 5672
  60. username: lantone
  61. password: lantone
  62. publisher-confirms: true
  63. virtual-host: /
  64. #mybatis
  65. mybatis-plus:
  66. mapper-locations: classpath:/mapper/*Mapper.xml
  67. #实体扫描,多个package用逗号或者分号分隔
  68. typeAliasesPackage: com.diagbot.entity
  69. global-config:
  70. #刷新mapper 调试神器
  71. db-config:
  72. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  73. id-type: id_worker
  74. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  75. field-strategy: not_empty
  76. #驼峰下划线转换
  77. column-underline: true
  78. #数据库大写下划线转换
  79. #capital-mode: true
  80. #刷新mapper 调试神器
  81. refresh-mapper: true
  82. #逻辑删除配置
  83. logic-delete-value: 0
  84. logic-not-delete-value: 1
  85. #自定义填充策略接口实现
  86. #meta-object-handler: com.baomidou.springboot.xxx
  87. #自定义SQL注入器
  88. #sql-injector: com.baomidou.springboot.xxx
  89. configuration:
  90. map-underscore-to-camel-case: true
  91. cache-enabled: false