Spring JdbcTemplate Simple Example

Spring API provides JdbcTemplate to do database operations, it simplifies the use of JDBC creation and release resources. Here is one simple example to fetch database records using Spring JdbcTemplate.

Software Used

Java 1.7

Spring 3.0.5

MySql

1. Create a Database table

In this example we are creating a simple Student table and inserting one record.