jdbcTemplate的报错问题
return jdbcTemplate.queryForObject(sql, new Object[]{name,pwd}, new UserMapper()); 这一句我写了会报错,为啥呢? The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files 这个错误按照网上说明加入了spring.transaction-3.0.5.jar后又变成了错误:DataAccessException的错