Intellij Idea 工具不能识别Mybatis Mapper Interface - spring boot 集成

刚转去使用Idea,整合spring boot和 mybatis 时发现不能识别mapper对象,显示ERROR.Intellij Idea 工具不能识别Mybatis Mapper Interface - spring boot 集成


Intellij Idea 工具不能识别Mybatis Mapper Interface - spring boot 集成

这个可以通过修改severity级别来处理。

按Ctrl + Alt + S 调出Settings 界面,然后把 Inspections->Spring core->code->Autowring for bean class 设为warn或者直接no highlight就好了

Intellij Idea 工具不能识别Mybatis Mapper Interface - spring boot 集成