What is JdbcTemplate

The central class of the Spring JDBC abstraction framework is the JdbcTemplate class that includes the most common logic in using the JDBC API to access data, such as handling the creation of connection, statement creation, statement execution, and release of resource. The JdbcTemplate class can be found in the org.springframework.jdbc.core package.

The JdbcTemplate class instances are thread-safe once configured. A single JdbcTemplate can be configured and injected into multiple DAOs.

We can use the JdbcTemplate to execute the different types of SQL statements. Data Manipulation Language (DML) is used for inserting, retrieving, updating, and deleting the data in the database. SELECT, INSERT, or UPDATE statements are examples ...

Get Spring: Developing Java Applications for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.