1)第一个问题解决方案:将 @Autowired 换成 @Resource
2)第二个问题解决方案:导入@Service包:import org.springframework.stereotype.Service;
转载:https://blog.csdn.net/u012453843/article/details/54906905
IntelliJ Idea解决Could not autowire. No beans of 'xxxx' type found的错误提示
原文:https://www.cnblogs.com/nanao/p/15138857.html