
springboot异常处理:Consider defining a bean of type ‘java.lang.String‘ in your configuration.
报错:
Consider defining a bean of type 'java.lang.String' in your configuration
总结了网上的几种解决方案:
1、多余的@autowired
如:
2、待实例化的类里必须有默认的构造方法(即没有参数的那种)
👁️ 阅读量:0
© 版权声明:本文《springboot异常处理:Consider defining a bean of type ‘java.lang.String‘ in your configuration.》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686557161a291359.html。