代码生成器一直出现报argument type mismatch

提问 1 1094
Date
Date 2021-10-12
在使用代码生成器的时候,一直出现 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'id' of 'class io.renren.entity.TableInfoEntity' with value '49f4474258a84919879d7eff46e8181d' Cause: java.lang.IllegalArgumentException: argument type mismatch 然后数据配置表里面是有varchar的配置1152454183136325633 varchar String 2021-09-28 02:56:37.311818, 我这张表的id也是定义为varchar的
回帖
  • Date
    Date (楼主)
    2021-10-12
    测试的那个类生成的是Long型。然后导入本地表又是string的类型。很奇怪,要调整哪里
    0 回复