mybatis+spring boot, @Autowired 提示Could not autowire. No beans of … type found

今天在mybatis+spring boot配置完成後執行數據庫初始化單元測試時遇到如題所示的問題,在如圖所示的位置, 一種規避的解決方法是 修改idea配置,將spring 的severity的值設置爲"warning", 如下:
相關文章
相關標籤/搜索