链接 🔗

  • GitHub
  • MVNRepository

    简介

    Spring Boot 2.X 版本开始使用 HikariCP 作为默认数据库连接池,宣称为最快的数据库连接池。

    安装

    添加 spring-boot-starter-data-jdbcspring-boot-starter-data-jpa 依赖即可
  1. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jdbc -->
  2. <dependency>
  3. <groupId>org.springframework.boot</groupId>
  4. <artifactId>spring-boot-starter-data-jdbc</artifactId>
  5. <version>${parent.version}</version>
  6. </dependency>
  1. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa -->
  2. <dependency>
  3. <groupId>org.springframework.boot</groupId>
  4. <artifactId>spring-boot-starter-data-jpa</artifactId>
  5. <version>${parent.version}</version>
  6. </dependency>