解决Parameter ‘xxxList‘ not found. Available parameters are [arg0,Collection,list]

在这里插入图片描述
当有多个参数时不能直接传入List,要用注解将参数传进去

原代码

List<Tag> findTagsByTagIds(List<Long> tagIds);

修改后代码

List<Tag> findTagsByTagIds(@Param("tagIds") List<Long> tagIds);

问题解决!

猜你喜欢

转载自blog.csdn.net/weixin_51993595/article/details/119857014