13.nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or

返回一条数据

 @Select("select * from shs_users1")
    UserEntity getUsersAll();

但查询的时候有多条数据,那就使用list接收

@Select("select * from shs_users1")
    List<UserEntity> getUsersAll();

你可能感兴趣的:(SpringMVC,spring)