后台执行查询操作时报错如下:
org.springframework.jdbc.UncategorizedSQLException:SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];
这种情况会有以下两种错误导致出现:
1、当在实体中属性类型与数据库查询的结果不匹配时,如实体类中是private int id 而查询结果中是 null 或 aaa
2、当数据库中字段类型设置为不能null 时,执行的sql中传入的参数如果是null ,此时就会报以上错误,这种情况下需要更改传参问题。