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

今天在mybatis+spring boot配置完成后执行数据库初始化单元测试时遇到如题所示的问题,在如图所示的位置, 一种规避的解决方法是 修改idea配置,将spring 的severity的值设置为"warning", 如下:
相关文章
相关标签/搜索