org.apache.ibatis.binding.BindingException: Parameter ‘addressId’ not found. Available parameters are [morenid, moren, param1, param2] at org.apache.ibatis.binding.MapperMethod$ParamMap.get(MapperMethod.java:212) ~[mybatis-3.5.5.jar:3.5.5] at org.apache.ibatis.reflection.wrapper.MapWrapper.get(MapWrapper.java:45) ~[mybatis-3.5.5.jar:3.5.5] at org.apache.ibatis.reflection.metaObject.getValue(metaObject.java:122) ~[mybatis-3.5.5.jar:3.5.5] at org.apache.ibatis.scripting.defaults.DefaultParameterHandler.setParameters(DefaultParameterHandler.java:79) ~[mybatis-3.5.5.jar:3.5.5] at org.apache.ibatis.executor.statement.PreparedStatementHandler.parameterize(PreparedStatementHandler.ja
void changeAddressMoRenById(@Param("addressId") int addressId,@Param("moren") String moren);
update address set moren = #{moren} where address_id = #{addressId}
Mybatis 加载顺序问题 moren 和 addressId 调换位置之后解决问题
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)