Spring NamedParameterJdbcTemplate not returning result for simple query
问题 Please bare with my limited info on code since having limited access to copy paste complete code. @Repository("BaseDao") public class BaseDaoImpl implements BaseDao{ public NamedParameterJdbcTemplate namedJdbcTemplate; @Autowired public void setDataSource(DataSource dataSource){ this.namedJdbcTemplate = new NamedParameterJdbcTemplate(dataSource); } } @Repository("WelcomeDao") public class WelcomeDaoImpl extends BaseDaoImpl implements WelcomeDao { public List<String> getFunctionTypes() {