application-prod.yml
2.98 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
spring:
#------------------------------------------mysql---------------------------------------------------
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.14:13306/cmrdb?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=GMT%2B8
username: root
password: 38128
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: false
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
#----------------------------------------rabbitmq---------------------------------------------------
rabbitmq:
host: 192.168.0.14
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://file-upload-service:18010/file/upload/
#分析器批量删除文件接口
fileBatchDeleteUrl: http://file-upload-service:18010/file/batch-delete
#图片分析
pictureAnalysisUrl: http://file-figure-analyzer:18011/picture/analysis/person
#熟人库图片相似度查询
similarityMatchUrl: http://figure-data-service/familiar-figure-lib/image2figures
#删除熟人
deleteFigureUrl: http://figure-data-service/familiar-figure-lib/figure
#删除人脸
deleteFigureFaceUrl: http://figure-data-service/familiar-figure-lib/figure/face
#熟人与人脸一起添加(新增或更新)
figureFaceUrl: http://figure-data-service/familiar-figure/figure-face
#修改熟人
updateFigureUrl: http://figure-data-service/familiar-figure/figure-face/modify
#特征值字符串查熟人
feature2figureUrl: http://figure-data-service/familiar-figure-lib/feature2figure
#挂载路径
filePath: "/upload_data/"
#图片查陌生人
picturePersonUrl: http://figure-data-service/picture/person
pictureAnalysisToWordsUrl: http://file-ocr-analysis/ocr/image
cmr:
image:
basePath: upload_data/
startPath: ay-file/upload/