提交 | 用户 | 时间
|
58c4be
|
1 |
spring: |
潘 |
2 |
# 数据源配置项 |
|
3 |
autoconfigure: |
|
4 |
exclude: |
|
5 |
- com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源 |
|
6 |
datasource: |
|
7 |
druid: # Druid 【监控】相关的全局配置 |
|
8 |
web-stat-filter: |
|
9 |
enabled: true |
|
10 |
stat-view-servlet: |
|
11 |
enabled: true |
|
12 |
allow: # 设置白名单,不填则允许所有访问 |
|
13 |
url-pattern: /druid/* |
|
14 |
login-username: # 控制台管理用户名和密码 |
|
15 |
login-password: |
|
16 |
filter: |
|
17 |
stat: |
|
18 |
enabled: true |
|
19 |
log-slow-sql: true # 慢 SQL 记录 |
|
20 |
slow-sql-millis: 100 |
|
21 |
merge-sql: true |
|
22 |
wall: |
|
23 |
config: |
|
24 |
multi-statement-allow: true |
|
25 |
dynamic: # 多数据源配置 |
|
26 |
druid: # Druid 【连接池】相关的全局配置 |
|
27 |
initial-size: 1 # 初始连接数 |
|
28 |
min-idle: 1 # 最小连接池数量 |
|
29 |
max-active: 20 # 最大连接池数量 |
|
30 |
max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒 |
|
31 |
time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒 |
|
32 |
min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒 |
|
33 |
max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒 |
|
34 |
validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效 |
|
35 |
test-while-idle: true |
|
36 |
test-on-borrow: false |
|
37 |
test-on-return: false |
|
38 |
primary: master |
|
39 |
datasource: |
|
40 |
master: |
|
41 |
url: jdbc:mysql://172.16.8.100:3306/iailab_expert_master?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true |
|
42 |
username: root |
|
43 |
password: 123456 |
|
44 |
|
|
45 |
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 |
|
46 |
redis: |
|
47 |
host: 127.0.0.1 # 地址 |
|
48 |
port: 6379 # 端口 |
|
49 |
database: 0 # 数据库索引 |
|
50 |
password: 123456 # 密码,建议生产环境开启 |
|
51 |
|
|
52 |
influx-db: |
9961c7
|
53 |
org: iailab |
潘 |
54 |
bucket: buk_shasteel |
08b6a5
|
55 |
token: p-WkLXdPmHD4Cdij2PD-r92dLEQqjQ8V5KhyZYHYroBNVE0ZrW5VgzqWBNmXmiEdxEWaURC7rrKVzuM0XTEraQ== |
9961c7
|
56 |
url: http://172.16.8.200:8086 |
潘 |
57 |
username: root |
|
58 |
password: iailab12345678 |
58c4be
|
59 |
|
潘 |
60 |
iems: |
|
61 |
upload-dir: D:/DLUT/upload/ |
|
62 |
|
21dc7e
|
63 |
video: |
08b6a5
|
64 |
capture-dir: D:/iailab |
21dc7e
|
65 |
dahua: |
H |
66 |
path: |
08b6a5
|
67 |
capture-path: /Dahua/Capture/ |
H |
68 |
model-path: /Dahua/Model/ |
|
69 |
hikvision: |
|
70 |
path: |
|
71 |
capture-path: /Hikvision/Capture/ |
|
72 |
model-path: /Hikvision/Model/ |
|
73 |
pic-size: 2 # size of picture 0=CIF, 1=QCIF, 2=D1 3=UXGA(1600x1200), 4=SVGA(800x600), 5=HD720p(1280x720),6=VGA |
|
74 |
pic-quality: 0 # quality of picture 0-best 1-better 2-normal |
21dc7e
|
75 |
|