Spring JdbcTemplate is used connect to backend database and execute SQL queries. Internally it uses JDBC API but simplifies the use of JDBC and helps to avoid common errors. It can run SQL queries, iterate through ResultSets and catch Exceptions.
This video shows a basic example how to use Spring Jdbc Template with back end mySQL and used in a RESTful API.