首页 > 程序开发 > 软件开发 > 其他 >

springboot-data-jpa默认数据库连接池

2017-01-18

springboot-data-jpa默认数据库连接池:默认是tomcat-jdbc连接池。

springboot-data-jpa默认数据库连接池:默认是tomcat-jdbc连接池。

spring.datasource.url=jdbc:mysql://localhost:3306/demo
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.max-idle=10
spring.datasource.max-wait=10000
spring.datasource.min-idle=5
spring.datasource.initial-size=5
spring.datasource.validation-query=SELECT 1
spring.datasource.test-on-borrow=false
spring.datasource.test-while-idle=true
spring.datasource.time-between-eviction-runs-millis=18800
spring.datasource.jdbc-interceptors=ConnectionState;SlowQueryReport(threshold=0)

查看最新配置

org/springframework/boot/spring-boot-autoconfigure/1.3.5.RELEASE/spring-boot-autoconfigure-1.3.5.RELEASE.jar!/META-INF/spring-configuration-metadata.json

相关文章
最新文章
热点推荐