Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested ex

Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2
使用mybatis时 当数据库表中存在很多的null时,这时候会出现这种错误,
把表里面的数据重新设计就可以解决

你可能感兴趣的:(ssm,mybtis)