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时,这时候会出现这种错误,
把表里面的数据重新设计就可以解决


版权声明:本文为Dam_e_原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。