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 项目重新启动:可以看到项目重新启动成功 ※※※ 写代码还是要注意
相关文章
相关标签/搜索