application.yml mybatis最简单的配置
server:port: 8080servlet:spring:minIdle: 1。
·
server:
port: 8080
servlet:
context-path: /test
spring:
datasource:
driverClassName: com.mysql.jdbc.Driver
username: root
password: 123456
url: jdbc:mysql://localhost:3306/mateng?setUnicode=true&characterEncoding=utf8
type: com.alibaba.druid.pool.DruidDataSource
filters: stat
initialSize: 1
maxActive: 20
maxOpenPreparedStatements: 20
maxWait: 60000
minEvictableIdleTimeMillis: 300000
minIdle: 1
poolPreparedStatements: true
testOnBorrow: false
testOnReturn: false
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
validationQuery: select 'x'更多推荐



所有评论(0)