Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The Spring JDBC provides full access to the JDBC APIs. It simplifies the usage by providing different easy methods to execute queries and for working within the resultset. Moreover, Spring JDBC eliminates repetitive code and handles SQL errors properly.
The acquisition and release of the connection, the execution of statements, and other redundant code that I wrote in the previous example are all handled by Spring. Here is just one example to show what the code looks like using Spring JDBC instead of the traditional one.