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 version() # é…置检测连接是å¦æœ‰æ•ˆ 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: 172.16.8.100 # åœ°å€ port: 6379 # ç«¯å£ database: 0 # æ•°æ®åº“索引 # password: 123456 # 密ç ï¼Œå»ºè®®ç”Ÿäº§çŽ¯å¢ƒå¼€å¯ --- #################### MQ 消æ¯é˜Ÿåˆ—相关é…ç½® #################### spring: # RabbitMQ é…置项,对应 RabbitProperties é…置类 rabbitmq: host: 127.0.0.1 # RabbitMQ æœåŠ¡çš„åœ°å€ port: 5672 # RabbitMQ æœåŠ¡çš„ç«¯å£ username: guest # RabbitMQ æœåŠ¡çš„è´¦å· password: guest # RabbitMQ æœåŠ¡çš„密ç # Kafka é…置项,对应 KafkaProperties é…置类 kafka: bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地å€ï¼Œå¯ä»¥è®¾ç½®å¤šä¸ªï¼Œä»¥é€—å·åˆ†éš” management: health: enabled: true show-details: always rabbit: enabled: false influx-db: org: iailab token: p-WkLXdPmHD4Cdij2PD-r92dLEQqjQ8V5KhyZYHYroBNVE0ZrW5VgzqWBNmXmiEdxEWaURC7rrKVzuM0XTEraQ== url: http://172.16.8.200:8086 username: root password: iailab12345678 iems: upload-dir: D:/DLUT/upload/ video: capture-dir: D:/iailab dahua: path: capture-path: /Dahua/Capture/ model-path: /Dahua/Model/ hikvision: path: capture-path: /Hikvision/Capture/ model-path: /Hikvision/Model/ pic-size: 2 # size of picture 0=CIF, 1=QCIF, 2=D1 3=UXGA(1600x1200), 4=SVGA(800x600), 5=HD720p(1280x720),6=VGA pic-quality: 0 # quality of picture 0-best 1-better 2-normal