#server
server:
port: 80
servlet:
context-path: /
tomcat:
max-threads: 300
min-spare-threads: 50
#spring datasource,thymeleaf
spring:
datasource:
url: jdbc:mysql:///yonghedb?serverTimezone=GMT%2B8&characterEncoding=UTF8
username: root
password: root
thymeleaf:
prefix: classpath:/templates/pages/
cache: false
aop:
proxy-target-class: true
task:
execution:
pool:
core-size: 5
max-size: 128
queue-capacity: 128
keep-alive: 60000
thread-name-prefix: db-service-task-
async:
task:
corePoolSize: 10
maxPoolSize: 20
keepAliveSeconds: 60000
queueCapacity: 128
threadNamePrefix: db-async-service-task-
#mybatis
mybatis:
configuration:
default-statement-timeout: 60
map-underscore-to-camel-case: true
mapper-locations:
- classpath:/mapper/*/*.xml
#log
logging:
level:
com.cy: debug
YML文件配置
最新推荐文章于 2024-07-28 21:26:53 发布