日志错误信息:
Error creating bean with name 'activationController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.service.ActivationMachineService com.controller.ActivationController.activationMachineService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.service.ActivationMachineService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
检查:1、在controller中有声明并注解自动装载,注意声明不能加static,声明为静态的也报错
@Autowired
private ActivationMachineService activationMachineService;
2、创