# \u6570\u636E\u6E90\u914D\u7F6E spring: datasource: type: com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.cj.jdbc.Driver druid: # \u4E3B\u5E93\u6570\u636E\u6E90 master: url: jdbc:mysql://172.16.29.45:3306/wms_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false username: softhuaheng password: HHrobot123. # \u4ECE\u5E93\u6570\u636E\u6E90 slave: # \u4ECE\u6570\u636E\u6E90\u5F00\u5173/\u9ED8\u8BA4\u5173\u95ED enabled: false url: username: password: # \u521D\u59CB\u8FDE\u63A5\u6570 initialSize: 5 # \u6700\u5C0F\u8FDE\u63A5\u6C60\u6570\u91CF minIdle: 10 # \u6700\u5927\u8FDE\u63A5\u6C60\u6570\u91CF maxActive: 20 # \u914D\u7F6E\u83B7\u53D6\u8FDE\u63A5\u7B49\u5F85\u8D85\u65F6\u7684\u65F6\u95F4 maxWait: 60000 # \u914D\u7F6E\u95F4\u9694\u591A\u4E45\u624D\u8FDB\u884C\u4E00\u6B21\u68C0\u6D4B\uFF0C\u68C0\u6D4B\u9700\u8981\u5173\u95ED\u7684\u7A7A\u95F2\u8FDE\u63A5\uFF0C\u5355\u4F4D\u662F\u6BEB\u79D2 timeBetweenEvictionRunsMillis: 60000 # \u914D\u7F6E\u4E00\u4E2A\u8FDE\u63A5\u5728\u6C60\u4E2D\u6700\u5C0F\u751F\u5B58\u7684\u65F6\u95F4\uFF0C\u5355\u4F4D\u662F\u6BEB\u79D2 minEvictableIdleTimeMillis: 300000 # \u914D\u7F6E\u4E00\u4E2A\u8FDE\u63A5\u5728\u6C60\u4E2D\u6700\u5927\u751F\u5B58\u7684\u65F6\u95F4\uFF0C\u5355\u4F4D\u662F\u6BEB\u79D2 maxEvictableIdleTimeMillis: 900000 # \u914D\u7F6E\u68C0\u6D4B\u8FDE\u63A5\u662F\u5426\u6709\u6548 validationQuery: SELECT 1 FROM DUAL testWhileIdle: true testOnBorrow: false testOnReturn: false webStatFilter: enabled: true statViewServlet: enabled: true # \u8BBE\u7F6E\u767D\u540D\u5355\uFF0C\u4E0D\u586B\u5219\u5141\u8BB8\u6240\u6709\u8BBF\u95EE allow: url-pattern: /druid/* # \u63A7\u5236\u53F0\u7BA1\u7406\u7528\u6237\u540D\u548C\u5BC6\u7801 login-username: login-password: filter: stat: enabled: true # \u6162SQL\u8BB0\u5F55 log-slow-sql: true slow-sql-millis: 1000 merge-sql: true wall: config: multi-statement-allow: true #\u65E5\u5FD7\u914D\u7F6E logging: level: com.huaheng: debug org.springframework: warn spring.springboot.dao: DEBUG server: port: 8888 servlet: context-path: /twms/