org.apache.ibatis.reflaction.ReflectionException:Error instantiating class with

org.apache.ibatis.reflaction.ReflectionException:Error instantiating class with invalid types() or values()

解决方案:

1) model中的get/set方法与成员变量不一。
2) 构造函数被重载过,但是没有空的构造函数。
3) 最好不要使用简单类型,如int, long等,改用对象模式Integer, Long等。在写条件查询时会用到判断<if xxx != null > … </if>的

猜你喜欢

转载自aoyouzi.iteye.com/blog/2232544