在使用
SingleColumnRowMapper.newInstance()
的时候报错
jdbc 报错信息:
org.springframework.jdbc.IncorrectResultSetColumnCountException: Incorrect column count: expected 1, actual 3
其实这样是不对的,
应该为
new BeanPropertyRowMapper<>()
在使用
SingleColumnRowMapper.newInstance()
的时候报错
jdbc 报错信息:
org.springframework.jdbc.IncorrectResultSetColumnCountException: Incorrect column count: expected 1, actual 3
其实这样是不对的,
应该为
new BeanPropertyRowMapper<>()