报错如图 问题在于mapper层继承BaseMapper时,BaseMapper没有写泛型。 解决如下,找到mapper层的接口代理,在继承的BaseMapper<pojo中的实体类>,解决如下: 运行结果如图: