Spring JDBC 1. Overview In this article, we’ll go through practical use cases of the Spring JDBC module. All the classes in Spring JDBC are divided into four separate packages: core – the core functionality of JDBC. Some of the important classes under this package include JdbcTemplate, SimpleJdbcInsert, SimpleJdbcCall and… Continue Reading spring-jdbc-jdbctemplate

Obtaining Auto-generated Keys in Spring JDBC 1. Introduction In this quick tutorial, we’ll explore the possibility of getting the auto-generated key after inserting entities when working with Spring JDBC. 2. Maven Dependencies At first, we need to have spring-boot-starter-jdbc and H2 dependencies defined in our pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>com.h2database</groupId>… Continue Reading spring-jdbc-autogenerated-keys