Mybatis NoSuchMethodException ()

xmlresultMap如下:
	










运行过程中出现如下错误
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class model.authen.User with invalid types (Integer,String,String,String,Boolean,) or values (1001,wellbeing,null,wellbeing,false,). Cause: java.lang.NoSuchMethodException: model.authen.User.(java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean)



有可能是类中没有写相应的构造函数,也有可能是mybatis在配置文件中的javaType要写别名,比如上面boolean需要写成_boolean,_int表示int类型,而int则表示Inetger,有的像 _float _double,等等。
https://issues.apache.org/jira/browse/IBATIS-743

你可能感兴趣的:(Mybatis NoSuchMethodException ())