org.apache.ibatis.binding.BindingException: Parameter 'Id' not found

异常:

org.apache.ibatis.binding.BindingException: Parameter 'Id' not found. Available parameters are [arg1, Id, param1, param2]

 解决:

在XXXmapper.java 的方法参数中,添加注解@Param(),以让ibatis识别

int select(@Param("Id") Long Id);

猜你喜欢

转载自blog.csdn.net/qq_37335810/article/details/83745384
今日推荐