org.apache.ibatis.binding.BindingException: Parameter ‘‘ not found.

org.apache.ibatis.binding.BindingException: Parameter ‘‘ not found.,第1张

org.apache.ibatis.binding.BindingException: Parameter ‘‘ not found.

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 调换位置之后解决问题

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5682889.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存