org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property ‘id’ of ‘class com.hongzhe.ucenterservice.entity.UcenterMember’ with value ‘1494590129510080514’ Cause: java.lang.IllegalArgumentException: argument type mismatch
实体类是代码生成器根据数据库自动生成的; ![在这里插入图片描述](https://img-blog.csdnimg.cn/516a1f862cd940feb4270beb46b6fb18.png)
实体类id,改成type = IdType.ID_WORKER_STR
,就可以了:
mp实体类常见注解:
public class UcenterMember implements Serializable {
private