boot-security/src/main/resources/application.yml

61 lines
1.5 KiB
YAML
Raw Normal View History

2017-10-13 09:51:29 +00:00
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/boot_security?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
username: root
password: root
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,wall,log4j
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
jackson:
date-format: yyyy-MM-dd HH:mm:ss
joda-date-time-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
http:
multipart:
max-file-size: 100MB
max-request-size: 100MB
mvc:
servlet:
load-on-startup: 1
redis:
host: localhost
port: 6379
mail:
default-encoding: UTF-8
host: smtp.163.com
username: xxx@163.com
password: xxx
protocol: smtp
test-connection: false
mybatis:
type-aliases-package: com.boot.security.server.model
mapper-locations: classpath:/mybatis-mappers/*
configuration:
mapUnderscoreToCamelCase: true
files:
path: ${file-path:d:/files}
2017-10-16 03:32:26 +00:00
logging:
config: classpath:logback-admin.xml
log:
level:
root: info
my: debug
file: logs/admin-server.log
maxsize: 30MB
2017-10-13 09:51:29 +00:00
token:
expire:
seconds: 86400
server:
port: 8080