SpringCloud错误错误记录
Posted 霓裳梦竹
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SpringCloud错误错误记录相关的知识,希望对你有一定的参考价值。
1 org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.slp.eurekaserver.EurekaServerApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.cloud.netflix.eureka.server.EurekaServerConfiguration 2 at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:525) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 3 at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:278) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 4 at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:232) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 5 at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:199) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 6 at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:168) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 7 at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:321) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 8 at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 9 at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 10 at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 11 at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 12 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 13 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.7.RELEASE.jar:1.3.7.RELEASE] 14 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:760) [spring-boot-1.3.7.RELEASE.jar:1.3.7.RELEASE] 15 at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:360) [spring-boot-1.3.7.RELEASE.jar:1.3.7.RELEASE] 16 at org.springframework.boot.SpringApplication.run(SpringApplication.java:306) [spring-boot-1.3.7.RELEASE.jar:1.3.7.RELEASE] 17 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185) [spring-boot-1.3.7.RELEASE.jar:1.3.7.RELEASE] 18 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174) [spring-boot-1.3.7.RELEASE.jar:1.3.7.RELEASE] 19 at com.slp.eurekaserver.EurekaServerApplication.main(EurekaServerApplication.java:15) [classes/:na] 20 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121] 21 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121] 22 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121] 23 at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121] 24 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) [idea_rt.jar:na] 25 Caused by: java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.cloud.netflix.eureka.server.EurekaServerConfiguration 26 at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:163) ~[spring-core-4.2.7.RELEASE.jar:4.2.7.RELEASE] 27 at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:292) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 28 at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:232) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 29 at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:516) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] 30 ... 22 common frames omitted 31 Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/web/servlet/FilterRegistrationBean 32 at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_121] 33 at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_121] 34 at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_121] 35 at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:152) ~[spring-core-4.2.7.RELEASE.jar:4.2.7.RELEASE] 36 ... 25 common frames omitted 37 Caused by: java.lang.ClassNotFoundException: org.springframework.boot.web.servlet.FilterRegistrationBean 38 at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_121] 39 at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_121] 40 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_121] 41 at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_121] 42 ... 29 common frames omitted
原因:spring-cloud和spring-boot版本不一致
1 com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect
原因:将自己注册自己到Eureka Server 和是否从Eureka Server上获取注册信息设置为false
以上是关于SpringCloud错误错误记录的主要内容,如果未能解决你的问题,请参考以下文章
错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段
错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段
在下面的代码片段中的剩余 ='passthrough' 处的代码中出现语法错误
错误代码:错误域 = NSCocoaErrorDomain 代码 = 3840“JSON 文本没有以数组或对象和允许未设置片段的选项开头。”