spring: # æ•°æ®æºé…置项 autoconfigure: exclude: - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动é…置,使用 dynamic-datasource-spring-boot-starter é…置多数æ®æº datasource: druid: # Druid ã€ç›‘控】相关的全局é…ç½® web-stat-filter: enabled: true stat-view-servlet: enabled: true allow: # 设置白åå•ï¼Œä¸å¡«åˆ™å…许所有访问 url-pattern: /druid/* login-username: # 控制å°ç®¡ç†ç”¨æˆ·å和密ç login-password: filter: stat: enabled: true log-slow-sql: true # æ…¢ SQL 记录 slow-sql-millis: 100 merge-sql: true wall: config: multi-statement-allow: true dynamic: # 多数æ®æºé…ç½® druid: # Druid ã€è¿žæŽ¥æ± 】相关的全局é…ç½® initial-size: 1 # åˆå§‹è¿žæŽ¥æ•° min-idle: 1 # 最å°è¿žæŽ¥æ± æ•°é‡ max-active: 20 # æœ€å¤§è¿žæŽ¥æ± æ•°é‡ max-wait: 600000 # é…置获å–连接ç‰å¾…超时的时间,å•ä½ï¼šæ¯«ç§’ time-between-eviction-runs-millis: 60000 # é…置间隔多久æ‰è¿›è¡Œä¸€æ¬¡æ£€æµ‹ï¼Œæ£€æµ‹éœ€è¦å…³é—的空闲连接,å•ä½ï¼šæ¯«ç§’ min-evictable-idle-time-millis: 300000 # é…ç½®ä¸€ä¸ªè¿žæŽ¥åœ¨æ± ä¸æœ€å°ç”Ÿå˜çš„时间,å•ä½ï¼šæ¯«ç§’ max-evictable-idle-time-millis: 900000 # é…ç½®ä¸€ä¸ªè¿žæŽ¥åœ¨æ± ä¸æœ€å¤§ç”Ÿå˜çš„时间,å•ä½ï¼šæ¯«ç§’ validation-query: SELECT 1 FROM DUAL # é…置检测连接是å¦æœ‰æ•ˆ test-while-idle: true test-on-borrow: false test-on-return: false primary: master datasource: master: url: jdbc:mysql://127.0.0.1:3306/iailab_expert_master?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true username: root password: 123456 # Redis é…置。Redisson 默认的é…置足够使用,一般ä¸éœ€è¦è¿›è¡Œè°ƒä¼˜ redis: host: 127.0.0.1 # åœ°å€ port: 6379 # ç«¯å£ database: 0 # æ•°æ®åº“索引 # password: 123456 # 密ç ï¼Œå»ºè®®ç”Ÿäº§çŽ¯å¢ƒå¼€å¯ influx-db: org: IAILab bucket: whs_data token: gxhXM4H1VOBv07kYXKWyPag_zJ8_oChP4ooZ3u-BkSae9LS8R1wWzJYlmUjL3Qe9t1hDU3DtoYD5HTgjWoTGOg== url: http://localhost:8086 iems: upload-dir: D:/DLUT/upload/