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

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

                  引入的jar包是springframework中的

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

                  引入apache中的jar包

原文地址:https://www.cnblogs.com/DSLLMV/p/11062663.html