如圖 Could not autowire. No beans of *** type found 解決辦法 idea - Setting(ctrl+alt+s) - Editor - Inspection - Spring - Spring Core - Code Could not autowire. No beans of *** type found 改成warning Could not autowire. No beans of *** type found apply - ok Could not autowire. No beans of *** type found 搞定!