Could not autowire. No beans of String type found. Checks autowiring problems in a bean class

学习springboot使用的时候编译不通过,报了这个错误 Could not autowire. No beans of ‘String’ type found. Checks autowiring problems in a bean class. 错误截图: 刚开始一直以为是哪里配置错了,始终找不到是哪里的问题。 这个错其实是因为我定义了一个有参的构造器,却没有再显示定义一个无参的构造器,才
相关文章
相关标签/搜索