如果你使用的是Spring Boot或类似的框架,需要检查配置文件(如application.yml或application.properties)中是否正确设置了mybatis-plus.mapper-locations或者mybatis.type-aliases-package和mybatis.mapperLocations等属性,以确保MyBatis能够扫描到你的Mapper接口。 依赖问题:确认你的项目中已经正确引入了MyBatis-Plus的相关依赖...
interface 继承于 BaseMapper并添加default 方法的时候,在ServiceImpl使用baseMapper调用该default方法报错,发现baseMapper可能是Proxy方式实现导致的问题.继承的代码如下: interface XMapper extends BaseMapper { default String getTableSchema() { return "test" } } 在ServiceImpl使用baseMapper调用该getTableSchema()报错: ...