异常汇总

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){   } }

 



posted @ 2019-12-19 11:42  404UnknownCoder  阅读(166)  评论(0)    收藏  举报