Mybatis error

### 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

the reason:

The changes in the database id of the varchar, and the User class String is not changed from int

Guess you like

Origin www.cnblogs.com/ethan-cat/p/12470730.html