IntelliJ Idea 解決 Could not autowire. No beans of 'xxxx' type found 的錯誤提示

如果出現了該錯誤但並不影響運行的話,則原因可能是 Intellij IDEA 工具本身的問題。IDEA 可以理解 Spring 的上下文,這個是因爲 它是 MyBatis 的接口,不認識。 解決方法: 降低Autowired檢測的級別,將Severity的級別由之前的error改成warning或其它可以忽略的級別。
相關文章
相關標籤/搜索