轉載請注明來源:四個空格 » IntelliJ IDEA中Mapper接口通過@Autowired注入報錯的正確解決方式;
環境
- ideaIU-2018.3.4.win;
錯誤提示:
Could not autowire. No beans of 'JwDsBaseinfoCaseMapper' type found. less... (Ctrl+F1)
Inspection info:Checks autowiring problems in a bean class.
錯誤如下圖:
解決辦法
對Mapper接口進行修改:
修改后不再報錯:
轉載請注明來源:四個空格 » IntelliJ IDEA中Mapper接口通過@Autowired注入報錯的正確解決方式;