提交 | 用户 | 时间
|
a6de49
|
1 |
spring: |
H |
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 # 配置一个连接在池中最大生存的时间,单位:毫秒 |
aafa76
|
34 |
validation-query: select version() # 配置检测连接是否有效 |
a6de49
|
35 |
test-while-idle: true |
H |
36 |
test-on-borrow: false |
|
37 |
test-on-return: false |
|
38 |
primary: master |
|
39 |
datasource: |
|
40 |
master: |
cd5f85
|
41 |
url: jdbc:mysql://127.0.0.1:3306/iailab_expert_master?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true |
a6de49
|
42 |
username: root |
H |
43 |
password: 123456 |
f6f762
|
44 |
|
潘 |
45 |
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 |
a6de49
|
46 |
redis: |
54626e
|
47 |
host: 172.16.8.100 # 地址 |
f6f762
|
48 |
port: 6379 # 端口 |
潘 |
49 |
database: 0 # 数据库索引 |
808189
|
50 |
# password: 123456 # 密码,建议生产环境开启 |
a6de49
|
51 |
|
149dd0
|
52 |
--- #################### MQ 消息队列相关配置 #################### |
H |
53 |
|
|
54 |
spring: |
|
55 |
# RabbitMQ 配置项,对应 RabbitProperties 配置类 |
|
56 |
rabbitmq: |
2d5945
|
57 |
host: 172.16.8.200 # RabbitMQ 服务的地址 |
149dd0
|
58 |
port: 5672 # RabbitMQ 服务的端口 |
2d5945
|
59 |
username: admin # RabbitMQ 服务的账号 |
潘 |
60 |
password: admin123 # RabbitMQ 服务的密码 |
149dd0
|
61 |
# Kafka 配置项,对应 KafkaProperties 配置类 |
H |
62 |
kafka: |
|
63 |
bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔 |
|
64 |
|
|
65 |
management: |
|
66 |
health: |
|
67 |
enabled: true |
|
68 |
show-details: always |
|
69 |
rabbit: |
|
70 |
enabled: false |
|
71 |
|
a6de49
|
72 |
influx-db: |
cba7a8
|
73 |
org: iailab |
808189
|
74 |
token: p-WkLXdPmHD4Cdij2PD-r92dLEQqjQ8V5KhyZYHYroBNVE0ZrW5VgzqWBNmXmiEdxEWaURC7rrKVzuM0XTEraQ== |
cba7a8
|
75 |
url: http://172.16.8.200:8086 |
H |
76 |
username: root |
|
77 |
password: iailab12345678 |
a6de49
|
78 |
|
H |
79 |
iems: |
|
80 |
upload-dir: D:/DLUT/upload/ |
|
81 |
|
21dc7e
|
82 |
video: |
08b6a5
|
83 |
capture-dir: D:/iailab |
21dc7e
|
84 |
dahua: |
H |
85 |
path: |
08b6a5
|
86 |
capture-path: /Dahua/Capture/ |
H |
87 |
model-path: /Dahua/Model/ |
|
88 |
hikvision: |
|
89 |
path: |
|
90 |
capture-path: /Hikvision/Capture/ |
|
91 |
model-path: /Hikvision/Model/ |
|
92 |
pic-size: 2 # size of picture 0=CIF, 1=QCIF, 2=D1 3=UXGA(1600x1200), 4=SVGA(800x600), 5=HD720p(1280x720),6=VGA |
|
93 |
pic-quality: 0 # quality of picture 0-best 1-better 2-normal |
149dd0
|
94 |
|