首页 > 其他 > 详细

异常汇总

时间:2019-12-19 12:02:06      阅读:78      评论:0      收藏:0      [点我收藏+]

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!