问题
严重: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Mapper method 'com.cxx.mapper.MessageMapper.updateStatus attempted to return null from a method with a primitive return type (int).] with root cause
org.apache.ibatis.binding.BindingException: Mapper method 'com.cxx.mapper.MessageMapper.updateStatus attempted to return null from a method with a primitive return type (int).
... ...
xml 如下:
<!--标记消息已读-->
<select id="updateStatus" parameterType="int">
update message set status = #{param2} where id = #{param1}
</select>
sql 语句,无误,update 语句返回被更新的行数,无误
解决
我坑我自己
update 语句用什么 select 标签!!!!!!!!!!