server: #server-prot
port: 8111
spring:
application: #spring-name
name: mamabike
profiles: #dev
active: dev
datasource: #spring-datasource
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
filters: mergeStat
maxActive: 20
initialSize: 1
maxWait: 600000
minIdle: 1
validationQuery: select 1
testOnBorrow: false
testOnReturn: false
timeBetweenEvictionRunsMillis: 60000
testWhileIdle: true
minEvictableIdleTimeMillis: 25200000
removeAbandoned: true
removeAbandonedTimeout: 1800
logAbandoned: true
# 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
# removeAbandoned: true
# removeAbandonedTimeout: 1800
# logAbandoned: true
#mybatis
mybatis:
mapper-locations: classpath:com.coder520/**/**.xml
type-aliases-package: classpath:com.coder520.**.entity
application.yml
最新推荐文章于 2024-01-23 23:57:35 发布