springcloud启动报错Failed to initialize DiscoveryClient
来源:互联网 发布:淘宝客如何建站 编辑:程序博客网 时间:2024/06/07 08:40
org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.eurekaClient' 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.discovery.EurekaClient]: Factory method 'eurekaClient' threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient!
springcloud启动的时候报这个错误。
解决增加jersey jar
<dependency> <groupId>org.glassfish.jersey.core</groupId> <artifactId>jersey-server</artifactId> <version>2.25.1</version></dependency>
阅读全文
2 0
- springcloud启动报错Failed to initialize DiscoveryClient
- 启动vm报错failed to initialize KVM: Permission denie
- Tomcat启动报错 Failed to initialize connector [Connector[HTTP/1.1-8080]]
- 关于Tomcat启动报错:Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]
- Server启动报错-Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@43fe 0
- Shiro servlet启动报错 Failed to initialize component [org.apache.catalina.webresources.JarResource@xxxx
- springcloud启动报错
- failed to lazily initialize a collection of role:报错
- 启动resin时由于jdk是1.8版本报错:JDWP Transport dt_socket failed to initialize, TRANSPORT_LOAD
- tomcat启动maven报Failed to initialize component xxx StandardHost[localhost].StandardContext[/project]
- DDMS报错:Failed to initialize Monitor Thread:Unable to establish loopback connection
- 在eclipse中启动服务器报ERROR:transport error 202 ...ERROR: JDWP Transport dt_socket failed to initialize...
- 在eclipse中启动服务器报ERROR:transport error 202 ...ERROR: JDWP Transport dt_socket failed to initialize...
- 安装了ADT 插件的Eclipse 启动时会报Failed to initialize Monitor Thread 这样的错误
- 在eclipse中启动服务器报ERROR:transport error 202 ...ERROR: JDWP Transport dt_socket failed to initialize...
- 在eclipse中启动服务器报ERROR:transport error 202 ...ERROR: JDWP Transport dt_socket failed to initialize...
- Hibernate 一对多关系报错:failed to lazily initialize a collection
- Hibernate 一对多关系报错:failed to lazily initialize a collection
- IT基础34
- [python]记录Windows下安装matplot的经历
- java 方法重载总结
- Flutter进阶—实现动画效果(八)
- Servlet 3.0
- springcloud启动报错Failed to initialize DiscoveryClient
- APT实用案例一:状态模式之就算违背开闭原则又何妨?
- IT基础36
- IT基础37
- transferto()方法,是springmvc封装的方法,用于图片上传时,把内存中图片写入磁盘
- IT基础38
- 卷积神经网络CNN理论到实践(2)
- IT基础39
- Scala的64位eclipse版ide