method xxx in xxx required a bean of type ‘java.lang.String’ that could not be found.

遇到的问题:
method xxx in xxx required a bean of type 'java.lang.String' that could not be found.
错误出现的问题的代码:

method xxx in xxx required a bean of type 'java.lang.String' that could not be found.
@Autowired是自动装配。
而在本环境中,是Service实现类要实现Service的接口,应该使用@Override
method xxx in xxx required a bean of type 'java.lang.String' that could not be found.
项目重新启动:可以看到项目重新启动成功
method xxx in xxx required a bean of type 'java.lang.String' that could not be found.
※※※ 写代码还是要注意细节啊

相关文章: