spring-cloud 之ClassNotFoundException: org.springframework.cloud.context.named.NamedContextFactory
来源:互联网 发布:java设计模式uml 编辑:程序博客网 时间:2024/06/07 06:41
问题 :Caused by: java.lang.ClassNotFoundException: org.springframework.cloud.context.named.NamedContextFactory。
在使用spring-cloud-eureka-server开发服务注册中心时抛出的异常,请问如何解决?
解决方法:
在使用spring-cloud-eureka-server开发服务注册中心时抛出的异常,请问如何解决?
当前使用的配置如下:
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.4.2.RELEASE</version><relativePath/> <!-- lookup parent from repository --></parent><properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding><project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding><java.version>1.7</java.version></properties><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-eureka-server</artifactId></dependency></dependencies><dependencyManagement><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId><version>Brixton.RELEASE</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build>
解决方法:
添加以下依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId></dependency>
阅读全文
3 0
- spring-cloud 之ClassNotFoundException: org.springframework.cloud.context.named.NamedContextFactory
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- [SpringMVC]ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListene
- [ssh]ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException:org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException : org.springframework.web.context.ContextLoaderListener 处理
- ClassNotFoundException: org.springframework.context.event.GenericApplication
- 解决ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.context.event.GenericApplicationListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener解决办法
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderL,spring获取context
- Spring Cloud入门之Spring Cloud Config
- spring cloud 之Spring Cloud Config 尝鲜
- 解决三星note3调用系统拍照后程序崩溃或无法获取图片
- android第三方视频解码器Vitamio SDK使用后的感觉(2014.03.11)
- 多线程
- 需要学习的内容
- javax.sql.DataSource
- spring-cloud 之ClassNotFoundException: org.springframework.cloud.context.named.NamedContextFactory
- 记第一篇博客
- hdu3045 斜率优化
- Oculus展示新突破“焦点平面显示技术”,让近视人群使用VR头盔时摘掉眼镜
- 学习自动化测试的一些总结
- 数学建模|机器学习|主成分分析原理(PCA)
- 使用Python几个库打造自己的REPL
- iOS汇编教程
- maven工程没有target/dependency目录