# Server settings
server:
port: 9000
address: localhost
# SPRING PROFILES
spring:
datasource:
name: test
url: jdbc:mysql://localhost:3306/<span style="font-family:'Microsoft YaHei';">xxxx</span>
username: root
password: <span style="font-family:'Microsoft YaHei';">xxxx</span>
# 使用druid数据源
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
# HTTP ENCODING
http:
encoding.charset: UTF-8
encoding.enable: true
encoding.force: true
# MyBatis
mybatis:
mapperLocations: classpath:mapper/*.xml
typeAliasesPackage: com.wasu.common.bean
# pagehelper分页插件配置
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# LOGGING
logging:
level:
com.ibatis:DEBUG
spring boot推荐使用的yml配置文件的参考版本
猜你喜欢
转载自blog.csdn.net/jintingbo/article/details/81626917
今日推荐
周排行