今天一个蛋疼的问题,找了好久的网络都是要用注解形式 然而我代码写了注解的,如下
UserWxReward selectByCondition(@Param(“userId”)Long userId, @Param(“type”)int type);
最后发现 原来是注解的@Param错误的引用了Spring的而不是Mybatis的…
org.apache.ibatis.binding.BindingException: Parameter '' not found. Available parameters are [arg1,
最新推荐文章于 2024-05-14 19:25:42 发布