- Spring Security(Third Edition)
- Mick Knutson Robert Winch Peter Mularien
- 94字
- 2025-04-04 17:54:29
Updating our dependencies
We have already included all the dependencies you need for this chapter, so you will not need to make any updates to your build.gradle file. However, if you are just adding Spring Data JPA support to your own application, you need to add spring-boot-starter-data-jpa as a dependency in the build.gradle file, as follows:
//build.gradle
dependencies {
...
// REMOVE: compile('org.springframework.boot:spring-boot-starter-jdbc')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
...
}
Notice we removed the spring-boot-starter-jdbc dependency. The spring-boot-starter-data-jpa dependency will contain all the dependencies needed to wire our domain objects to our embedded database with JPA.