IDEA--Could not autowire. No beans of xxx type found

對於IDEA 對mapper的錯誤提示(實際可以運行) 方法1:在mapper接口加上@Repository 方法2:使用@Resource替代@Autowired 方法3:加上 @SuppressWarnings(「all」)抑制提示 @Autowired private QccBaseInfoMapper qccBaseInfoMapper;
相關文章
相關標籤/搜索