4、Invalid property 'dataSource' of bean class [xxx.dao.JdbcUserDao]: Bea

四、Invalid property dataSource of bean class [xxx.dao.JdbcUserDao]: Bean propertyprivate JdbcTempla

四、Invalid property 'dataSource' of bean class [xxx.dao.JdbcUserDao]: Bean property

private JdbcTemplate template;    public void setDataSource(DataSource dataSource){        //相当于this.getJdbcTemplate()        template = new JdbcTemplate(dataSource);            }