application-dev.yml
2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
spring:
#------------------------------------------mysql---------------------------------------------------
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.1.41:3306/cmrdb?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=GMT%2B8
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
##配置初始化大小、最小、最大
initial-size: 5
max-active: 100
min-idle: 5
#配置获取连接等待超时的时间
max-wait: 60000
##打开PSCache,并且指定每个连接上PSCache的大小
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
validation-query: SELECT 1 FROM DUAL
validation-query-timeout: 60000
##这里建议配置为TRUE,防止取到的连接不可用
test-on-borrow: true
test-on-return: false
test-while-idle: true
##配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 100000
jpa:
show-sql: true
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
#----------------------------------------rabbitmq---------------------------------------------------
rabbitmq:
host: 127.0.0.1
port: 5672
username: admin
password: admin
virtual-host: /
#设置发送确认
publisher-confirm-type: correlated
template:
mandatory: true
listener:
simple:
#决定被拒绝的消息是否重新入队
default-requeue-rejected: true
retry:
#时间间隔5秒
initial-interval: 5000ms
enabled: true
#最大重试次数
max-attempts: 4
analyser:
#分析器上传接口
uploadUrl: http://192.168.1.99/file-upload-service/file/upload/
#分析器批量删除文件接口
fileBatchDeleteUrl: http://192.168.1.99/file-upload-service/file/batch-delete
#图片分析
pictureAnalysisUrl: http://192.168.0.14:20005/file-figure-analyzer/picture/analysis/person
cmr:
image:
basePath: