美文网首页开源技术Spring0-1世界
Could not autowire. No Beans of.

Could not autowire. No Beans of.

作者: Luomeng | 来源:发表于2017-07-23 16:44 被阅读66次

环境:
IDEA开发工具+Spring Boot+Mybatis+TkMybatis。

问题

由于Mapper是由tkmybatis负责扫描的,有可能IDEA不能识别,所以提示错误了。

问题

解决方法

方式1:
在偏好设置里-->Inspections-->Spring-->Severity,设置为Warning,之前是Error。

方式1

这种方式算是治标不治本,只是把烦人的错误提示下波浪线去掉了,
期待大家补充方式2.

相关文章

网友评论

    本文标题:Could not autowire. No Beans of.

    本文链接:https://www.haomeiwen.com/subject/xttmkxtx.html