700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 解决:Parameter 0 of constructor in xxx required a bean of type ‘xxx‘ that could not be found.

解决:Parameter 0 of constructor in xxx required a bean of type ‘xxx‘ that could not be found.

时间:2019-10-08 11:28:52

相关推荐

解决:Parameter 0 of constructor in xxx required a bean of type ‘xxx‘ that could not be found.

运行报错:

Parameter 0 of constructor in com.xxx.Crawler required a bean of type 'java.lang.String' that could not be found.

修复方案:

添加一个默认的无参构造器在类中,如:

public Crawler(){super("logs", false);}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。