DAO层中,方法参数@Param注解来源问题

错误原因:import org.springframework.data.repository.query.Param;

                  引入的jar包是springframework中的

正确写法:import org.apache.ibatis.annotations.Param;

                  引入apache中的jar包

posted @ 2019-06-21 09:19  PCmecG3  阅读(781)  评论(0编辑  收藏  举报