A Simple DAO class extends JdbcDaoSupport, but, unable to inject or @autowired a “dataSource”, the method setDataSource is final, can’t override. Solution To quickly fix it, uses @PostConstruct to inject the dataSource like this : @Repository public class UserDetailsDaoImpl extends JdbcDaoSupport implements UserDetailsDao { @Autowired private DataSource dataSource ; @PostConstruct private void initialize ( ) { setDataSource ( dataSource ) ; } } Alternatively, create an own implementation of JdbcDaoSupport class, and do whatever you want. Dive inside the source code of JdbcDaoSupport , it’s just a simple helper class to create a jdbcTemplate . Source :- https://www.mkyong.com/spring/how-to-autowire-datasource-in-jdbcdaosupport/
A Full Stack developer who is facing problems in development cycle and here you find solution of errors of those problems.This includes all exception and configuration issues. Solutions which i have written in blog are the one which worked for me after killing my time :) .