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

默认是tomcat-jdbc连接池

  • Spring Boot学习笔记-SQL数据库使用

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

其他通用配置

  • Appendix A. Common application properties

  • SpringBoot配置属性之DataSource

你可能感兴趣的:(jpa,springboot)