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


修改
<update id="updateStatusById" parameterType="java.lang.Integer">    
        update  
        nic_techsupport  
        set status_id = #{0}  
        where techsupport_id =#{1}  
    </update><update id="updateStatusById" parameterType="java.lang.Integer">    
        update  
        nic_techsupport  
        set status_id = #{arg0}  
        where techsupport_id =#{arg1}  
    </update>  
在MyBatis3.4.4版不能直接使用#{0}要使用 #{arg0}

 參考:https://www.cnblogs.com/EasonJim/p/7056256.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM