原文地址为:
mybatis问题org.apache.ibatis.binding.BindingException: Parameter 'title' not found.
转载请注明本文地址: mybatis问题org.apache.ibatis.binding.BindingException: Parameter 'title' not found.
Caused by: org.apache.ibatis.binding.BindingException: Parameter 'title' not found. Available parameters are [1, 0, param1, param2]
方法要这样写:
void insertData(@Param("id")String id, @Param("title")String title);
或者不改传参,改sql:
sql中的参数用 #{0},#{1}代替即可
转载请注明本文地址: mybatis问题org.apache.ibatis.binding.BindingException: Parameter 'title' not found.