BeanPropertyRowMapper的异常处理
关于org.springframework.beans.BeanInstantiationException: Failed to instantiate这个异常的处理
//1.定义sql语句
String sql = "select * from account where username = ? and password = ?";
//2.使用JdbcTemplate的queryForObject方法查询并赋值对象
try {
原创
2020-11-25 13:53:52 ·
516 阅读 ·
0 评论