You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
44 lines
1.5 KiB
spring:
|
|
jackson:
|
|
time-zone: GMT+8
|
|
profiles:
|
|
active: dev
|
|
freemarker:
|
|
suffix: .ftl
|
|
#template-loader-path: '${user.dir}/templates' #外部页面设置
|
|
settings:
|
|
number_format: '0.##' #格式化数字, 无小数
|
|
datasource:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
druid:
|
|
initial-size: 5 # 初始化大小
|
|
max-active: 100 # 最大
|
|
min-idle: 5 # 最小
|
|
max-wait: 60000 # 连接超时时间
|
|
login-timeout: 30
|
|
pool-prepared-statements: true
|
|
max-pool-prepared-statement-per-connection-size: 20
|
|
validation-query: SELECT 1
|
|
validation-query-timeout: 2000
|
|
test-while-idle: true # 当连接空闲时,是否执行连接测试
|
|
test-on-borrow: false # 当从连接池借用连接时,是否测试该连接
|
|
test-on-return: false # 在连接归还到连接池时是否测试该连接
|
|
time-between-eviction-runs-millis: 60000
|
|
min-evictable-idle-time-millis: 30000
|
|
filters: stat,wall, # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
|
web-stat-filter:
|
|
url-pattern: /*
|
|
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
|
|
session-stat-enable: true
|
|
stat-view-servlet:
|
|
url-pattern: /druid/*
|
|
login-username: admin
|
|
login-password: 123456
|
|
|
|
|
|
server:
|
|
port: 8086
|
|
servlet:
|
|
session:
|
|
timeout: 1800s
|
|
cookie:
name: sessionid_chin_plate2021
|