JdbcTemplate is the heart of the JDBC. This is the center class of JDBC. SQL queries are executed by JdbcTemplate, which also fetches the results. To use this JdbcTemplate, we need to autowire the JdbcTemplate in this repository class. Here is the piece of code of this repository class:
@Repository
class UserRepository: UserInterface {
@Autowired
private lateinit var jdbcTemplate: JdbcTemplate
----
----
}