配置了一个很简单的eureka + openfeign小项目,eureka服务端和生产端项目都成功启动,唯独这个消费端项目怎么都跑不起来,代码都没有几行。
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
查找资料无果,我就只能补上一点配置,然后好了,它启动了!!!???费解。。
eureka + OpenFeign 启动报错
于 2022-03-04 08:16:01 首次发布