Mybatis错误

### Error updating database.  Cause: org.apache.ibatis.executor.ExecutorException: Error selecting key or setting result to parameter object. Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'id' of 'class com.ethan.pojo.User' with value '9d70bec5-6444-11ea-8e82-54ee75b1bdd4' Cause: java.lang.IllegalArgumentException: argument type mismatch

原因:

把数据库中的id更改为把varchar,而User类没有从int改为String

posted @ 2020-03-12 17:43  shanshangsong  阅读(444)  评论(0)    收藏  举报