美文网首页
Failed to instantiate [com.carna

Failed to instantiate [com.carna

作者: 我是光芒万丈 | 来源:发表于2021-09-26 16:24 被阅读0次

提完代码遇到照常起服务遇到此问题。

nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityFeignClient': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.carnation.feign.SecurityFeignClient]: Specified class is an interface

检查发现配置写错误了:


错误代码

改成一下配置后正常.


正确代码

相关文章

网友评论

      本文标题:Failed to instantiate [com.carna

      本文链接:https://www.haomeiwen.com/subject/omgqnltx.html