Advertisement
Guest User

Untitled

a guest
Jan 11th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. server.port=80
  2.  
  3. # datasource
  4. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  5.  
  6. #MySQL
  7. spring.datasource.url=jdbc:mysql://localhost:3306/test
  8. spring.datasource.username=root
  9. spring.datasource.password=123456
  10. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  11. spring.datasource.filters = stat
  12. spring.datasource.maxActive = 20
  13. spring.datasource.initialSize = 1
  14. spring.datasource.maxWait = 60000
  15. spring.datasource.minIdle = 1
  16. spring.datasource.timeBetweenEvictionRunsMillis = 60000
  17. spring.datasource.minEvictableIdleTimeMillis = 300000
  18. spring.datasource.validationQuery=SELECT 1
  19. spring.datasource.testWhileIdle = true
  20. spring.datasource.testOnBorrow = false
  21. spring.datasource.testOnReturn = false
  22. spring.datasource.poolPreparedStatements = true
  23. spring.datasource.maxPoolPreparedStatementPerConnectionSize = 20
  24.  
  25. #Oracle
  26. #spring.datasource.url=jdbc:oracle:thin:@libsys:1521:orcl
  27. #spring.datasource.username=sys
  28. #spring.datasource.password=123456
  29. #spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
  30.  
  31. #MyBatis
  32. mybatis.mapper-locations=classpath:mapping/*.xml
  33.  
  34. spring.thymeleaf.mode=LEGACYHTML5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement