fgaFg9i4
2017-01-12 00:38:25

server.port=80

# datasource
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource

#MySQL
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.filters = stat
spring.datasource.maxActive = 20
spring.datasource.initialSize = 1
spring.datasource.maxWait = 60000
spring.datasource.minIdle = 1
spring.datasource.timeBetweenEvictionRunsMillis = 60000
spring.datasource.minEvictableIdleTimeMillis = 300000
spring.datasource.validationQuery=SELECT 1
spring.datasource.testWhileIdle = true
spring.datasource.testOnBorrow = false
spring.datasource.testOnReturn = false
spring.datasource.poolPreparedStatements = true
spring.datasource.maxPoolPreparedStatementPerConnectionSize = 20

#Oracle
#spring.datasource.url=jdbc:oracle:thin:@libsys:1521:orcl
#spring.datasource.username=sys
#spring.datasource.password=123456
#spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver

#MyBatis
mybatis.mapper-locations=classpath:mapping/*.xml

spring.thymeleaf.mode=LEGACYHTML5