icss-service-pro.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. server:
  2. port: 8843
  3. # 驱动配置信息
  4. spring:
  5. datasource:
  6. druid:
  7. driverClassName: com.mysql.cj.jdbc.Driver
  8. driver-class-name: com.mysql.cj.jdbc.Driver
  9. platform: mysql
  10. url: jdbc:mysql://192.168.2.236:3306/sys-icss?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. outputPoint:
  54. destination: myPoint
  55. # contentType: text/plain # 实体 json string 在传递的类型装换 查看 http://docs.spring
  56. inputPoint:
  57. destination: myPoint
  58. group: pointReceiveGroup
  59. #mq
  60. rabbitmq:
  61. host: 192.168.2.236
  62. port: 5672
  63. username: lantone
  64. password: lantone
  65. publisher-confirms: true
  66. virtual-host: /
  67. #mybatis
  68. mybatis-plus:
  69. mapper-locations: classpath:/mapper/*Mapper.xml
  70. #实体扫描,多个package用逗号或者分号分隔
  71. typeAliasesPackage: com.diagbot.entity
  72. global-config:
  73. #刷新mapper 调试神器
  74. db-config:
  75. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  76. id-type: id_worker
  77. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  78. field-strategy: not_empty
  79. #驼峰下划线转换
  80. column-underline: true
  81. #数据库大写下划线转换
  82. #capital-mode: true
  83. #刷新mapper 调试神器
  84. refresh-mapper: true
  85. #逻辑删除配置
  86. logic-delete-value: 0
  87. logic-not-delete-value: 1
  88. #自定义填充策略接口实现
  89. #meta-object-handler: com.baomidou.springboot.xxx
  90. #自定义SQL注入器
  91. #sql-injector: com.baomidou.springboot.xxx
  92. configuration:
  93. map-underscore-to-camel-case: true
  94. cache-enabled: false