0
点赞
收藏
分享

微信扫一扫

eureka + OpenFeign 启动报错

木樨点点 2022-03-11 阅读 61
spring cloud

配置了一个很简单的eureka + openfeign小项目,eureka服务端和生产端项目都成功启动,唯独这个消费端项目怎么都跑不起来,代码都没有几行。
yml配置图
org.springframework.context.ApplicationContextException: Failed to start bean ‘eurekaAutoServiceRegistration’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘scopedTarget.eurekaApplicationInfoManager’ defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.appinfo.ApplicationInfoManager]: Factory method ‘eurekaApplicationInfoManager’ threw exception; nested exception is java.lang.NullPointerException
查找资料无果,我就只能补上一点配置,然后好了,它启动了!!!???费解。。
![在这里插入图片描述](https://img-blog.csdnimg.cn/a987fe86998e49a2bb90618569e2dfd6.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA6Imz6Ziz6auY54Wn5Lit5pyA5Lqu55qE5pif,size_20,color_FFFFFF,t_70,g_se,x_16

举报

相关推荐

0 条评论