报错信息
[]API Error while execute:{}
org.springframework.dao.DataIntegrityViolationException: Error attempting to get column 'id' from result set.
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '1.21742570896173056E18' in column '1' is outside valid range for the datatype INTEGER.
; SQL []; '1.21742570896173056E18' in column '1' is outside valid range for the datatype INTEGER.;
nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '1.21742570896173056E18' in column '1' is outside valid range for the datatype INTEGER.
---
Cause: java.sql.SQLException: Invalid value for getInt()
---
构造器冲突 ,我没有设置无参和全参构造器 ,参考上面的链接
并且是跟我已有的自定义的构造器冲突 , 加上@NoArgsConstructor 、 @AllArgsConstructor 后解决问题