项目场景:
提示:这里简述项目相关背景:
问题描述
提示:这里描述项目中遇到的问题:
例如:
Parameter 'integral' not found. Available parameters are [integrals, id, param1, param2]] with root cause
org.apache.ibatis.binding.BindingException: Parameter 'integral' not found. Available parameters are [integrals, id, param1, param2]
原因分析:
提示:注解里的别名和数据库参数名要一致才可以更新
<update id="addIntegrals"> update USER set integral=#{integrals} where id=#{id} </update>
==========================================
Integer addIntegrals(@Param("id") String id,@Param("integrals") String integral);