Spring JDBC dependencies

The following are the Spring JDBC dependencies available in the pom.xml file:

  • The following code is for the Spring JDBC dependency:
 <dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.framework.version}</version>
</dependency>
  • The following code is for the PostgreSQL dependency:
 <dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.1</version>
</dependency>

In the preceding code, we have specified the dependency for Spring JDBC and PostgreSQL, respectively. The rest of the dependencies will be automatically resolved by Maven. Here, I am using the PostgreSQL database for our testing purposes, so I have added a PostgreSQL dependency. If you are using some other RDBMS, then you should make changes in the dependencies accordingly.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset