返回多条 Mysql报错
TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 7 你希望返回一行,但实际select得到的,超过一行记录
解决 :用list集合接收 结果集写list的封装类
public List<Integer> monthCount();
结果集类型问题
返回多条 Mysql报错
TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 7 你希望返回一行,但实际select得到的,超过一行记录
解决 :用list集合接收 结果集写list的封装类
public List<Integer> monthCount();
结果集类型问题