关于Spring Cloud:Mapper<>中的泛型红线:Type ‘org.apache.ibatis.annotations.Mapper‘ does not have type paramet

2023-02-03 09:25:44

在这里插入图片描述
Type ‘org.apache.ibatis.annotations.Mapper’ does not have type parameters


解决办法:
检查mapper接口中导入的包是不是通用mapper包
之前:
在这里插入图片描述
现在:
在这里插入图片描述

Tip:检查启动类中的MapperScan扫描导入的包是不是通用Mapper包!
应该为:
在这里插入图片描述

  • 作者:HelloFuckingWorld
  • 原文链接:https://blog.csdn.net/Forest_2Cat/article/details/114647183
    更新时间:2023-02-03 09:25:44