Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement