关于Mybatis-plus报错Invalid bound statement (not found):com.xxx.xxx.xxxMapper.selectList
作者:互联网
关于Mybatis-plus报错Invalid bound statement (not found):com.xxx.xxx.xxxMapper.selectList
出现这个报错有可能是在写自己的UserMapper时继承了BaseMapper 但没有添加泛型。
@Mapper
public interface UserMapper extends BaseMapper {
}
只需要添加对应的泛型
@Mapper
public interface UserMapper extends BaseMapper<User> {
}
结果就不会报错了
-HELLO-WORLD-
标签:BaseMapper,xxx,UserMapper,bound,Invalid,报错,xxxMapper 来源: https://blog.csdn.net/weixin_42225075/article/details/113575973