1,springboot 启动时报错:
*************************** APPLICATION FAILED TO START *************************** Description: Parameter 0 of method testServicein com.test.service.testService required a bean of type ‘java.lang.String‘ that could not be found. Action: Consider defining a bean of type ‘java.lang.String‘ in your configuration.
本地代码:
@Service("test") public class Test{
@Autowired private DeviceService deviceService; @Autowired // < ------------------ 删除多余的注解
@Async("asyncTestExecutor") public void testService(String message){ } }
原文:https://www.cnblogs.com/unknownCode/p/12066830.html