链接 🔗
- GitHub
- MVNRepository
简介
Spring Boot 2.X 版本开始使用 HikariCP 作为默认数据库连接池,宣称为最快的数据库连接池。
安装
添加 spring-boot-starter-data-jdbc
或 spring-boot-starter-data-jpa
依赖即可
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jdbc -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
<version>${parent.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>${parent.version}</version>
</dependency>