available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:{@org.springframework.beans.factory.annotation.Autowired(required=true)}
- 出现这种问题,就是说明使用注解的时候有问题
- 在Service实现类上没有添加注解
- 如果添加了注解,但是还报错,就说明@Service的包导错了,仔细检查,必须是@org.springframework.beans.factory.annotation.Autowired
转自 https://blog.csdn.net/weixin_44069498/article/details/85304538