application-dev.yml
2.38 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
server:
port: 8150
tomcat:
threads:
max: 1000
min-spare: 30
uri-encoding: UTF-8
spring:
application:
name: crp-operation
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.1.41:3306/crp_cloud?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
jackson:
date-format: yyy-MM-dd HH:mm:ss
time-zone: GMT+8
banner:
charset: UTF-8
location: classpath:banner.txt
servlet:
multipart:
location: /opt/upload/tmp
max-file-size: 100MB
max-request-size: 100MB
mybatis-plus:
mapper-locations: classpath*:/mapper/*Mapper.xml
typeAliasesPackage: com.wondertek.entity #开启类型别名,降低冗余的全限定类名书写
configuration:
mapUnderscoreToCamelCase: true #开启自动驼峰命名规则(camel case)映射
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 配置sql打印日志
global-config:
db-config:
logic-not-delete-value: 1
logic-delete-value: 0
transcode:
delayTimeUrl: http://192.168.1.237:9002/api/v1/delayTime # 延迟接口
blockStatusUrl: http://192.168.1.237:9002/api/v1/blockStatus # 屏蔽/恢复
switchStreamUrl: http://192.168.1.237:9002/api/v1/switchStream # 切换频道源
swapBackupUrl: http://192.168.1.237:9002/api/v1/swapBackup # 切垫片
getTaskDetail: http://192.168.1.237:9002/api/v1/getTaskDetail
file:
realPath: /home/wondertek/material_file_assets/dianpian/
crp:
user:
username: admin
password: 123456
log:
open_console: true