MyBatis报错 Parameter '0' not found. Available parameters are [arg1, arg0, param1, param2]

来源:互联网 发布:安装ubuntu时怎么分区 编辑:程序博客网 时间:2024/06/07 02:14

1.修改

[html] view plain copy
  1. <update id="updateStatusById" parameterType="java.lang.Integer">    
  2.         update  
  3.         nic_techsupport  
  4.         set status_id = #{0}  
  5.         where techsupport_id =#{1}  
  6.     </update>  
[html] view plain copy
  1. <update id="updateStatusById" parameterType="java.lang.Integer">    
  2.         update  
  3.         nic_techsupport  
  4.         set status_id = #{arg0}  
  5.         where techsupport_id =#{arg1}  
  6.     </update>  
在MyBatis3.4.4版不能直接使用#{0}要使用 #{arg0}
阅读全文
0 0
原创粉丝点击