本来岁月静好,直到出现了
Error attempting to get column 'mobile' from result set. Cause: org.postgresql.util.PSQLException: 不良的类型值 int : 135****444
; 不良的类型值 int : 135*****4444; nested exception is org.postgresql.util.PSQLException: 不良的类型值 int : 135****4444
经过一大堆莫名其妙且毫无用处的检索判断定位尝试
终于发现是因为实体类缺少无参构造和有参构造(其实主要原因是因为在sql中一个字段写了两次。。
但是在实体类上加上
@NoArgsConstructor
@AllArgsConstructor
字段也可以解决
希望我们都不会遇上这样因马虎而导致的问题!
管门!