String UPDATE_NEWS = "update T_NEWS set TITLE=#{title},CONTENTS=#{content},RDATE=#{date},ISSHOW=#{isShow}" +
",BIGPIC=#{bigPic} " +
" where ID=#{id}";
@Update(UPDATE_NEWS)
int updateNews(CentralNews News);
mapper里接口是这样的
执行后更新是更新到数据库里了,但是报了这个异常
nested exception is org.apache.ibatis.executor.ExecutorException: Error getting generated key or setting result to parameter object. Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'id' of 'class com.seu.xu.model.CentralNews' with value 'null' Cause: java.lang.IllegalArgumentException