knowledgeman-service-test.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. server:
  2. port: 8822
  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.241: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. servlet:
  48. multipart:
  49. enabled: true
  50. max-file-size: 5MB
  51. max-request-size: 5MB
  52. cloud:
  53. stream:
  54. bindings:
  55. outputLog:
  56. destination: myLog
  57. # contentType: text/plain # 实体 json string 在传递的类型装换 查看 http://docs.spring
  58. #mq
  59. rabbitmq:
  60. host: 192.168.2.241
  61. port: 5672
  62. username: lantone
  63. password: lantone
  64. publisher-confirms: true
  65. virtual-host: /
  66. #mybatis
  67. mybatis-plus:
  68. mapper-locations: classpath:/mapper/*Mapper.xml
  69. #实体扫描,多个package用逗号或者分号分隔
  70. typeAliasesPackage: com.diagbot.entity
  71. global-config:
  72. #刷新mapper 调试神器
  73. db-config:
  74. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  75. id-type: id_worker
  76. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  77. field-strategy: not_empty
  78. #驼峰下划线转换
  79. column-underline: true
  80. #数据库大写下划线转换
  81. #capital-mode: true
  82. #刷新mapper 调试神器
  83. refresh-mapper: true
  84. #逻辑删除配置
  85. logic-delete-value: 0
  86. logic-not-delete-value: 1
  87. #自定义填充策略接口实现
  88. #meta-object-handler: com.baomidou.springboot.xxx
  89. #自定义SQL注入器
  90. #sql-injector: com.baomidou.springboot.xxx
  91. configuration:
  92. map-underscore-to-camel-case: true
  93. cache-enabled: false