gateway整合nacos启动失败
启动日志如下:
D:\Java\jdk8\bin\java "-javaagent:D:\IntelliJ IDEA 2017.3.1\lib\idea_rt.jar=58276:D:\IntelliJ IDEA 2017.3.1\bin" -Dfile.encoding=UTF-8 -classpath D:\Java\jdk8\jre\lib\charsets.jar;D:\Java\jdk8\jre\lib\deploy.jar;D:\Java\jdk8\jre\lib\ext\access-bridge-64.jar;D:\Java\jdk8\jre\lib\ext\cldrdata.jar;D:\Java\jdk8\jre\lib\ext\dnsns.jar;D:\Java\jdk8\jre\lib\ext\jaccess.jar;D:\Java\jdk8\jre\lib\ext\jfxrt.jar;D:\Java\jdk8\jre\lib\ext\localedata.jar;D:\Java\jdk8\jre\lib\ext\nashorn.jar;D:\Java\jdk8\jre\lib\ext\sunec.jar;D:\Java\jdk8\jre\lib\ext\sunjce_provider.jar;D:\Java\jdk8\jre\lib\ext\sunmscapi.jar;D:\Java\jdk8\jre\lib\ext\sunpkcs11.jar;D:\Java\jdk8\jre\lib\ext\zipfs.jar;D:\Java\jdk8\jre\lib\javaws.jar;D:\Java\jdk8\jre\lib\jce.jar;D:\Java\jdk8\jre\lib\jfr.jar;D:\Java\jdk8\jre\lib\jfxswt.jar;D:\Java\jdk8\jre\lib\jsse.jar;D:\Java\jdk8\jre\lib\management-agent.jar;D:\Java\jdk8\jre\lib\plugin.jar;D:\Java\jdk8\jre\lib\resources.jar;D:\Java\jdk8\jre\lib\rt.jar;D:\IdeaProjects\study-openfeign-parent\study-gateway\target\classes;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-starter-gateway\2.0.0.RELEASE\spring-cloud-starter-gateway-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-starter\2.0.0.RELEASE\spring-cloud-starter-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\boot\spring-boot-starter\2.0.0.RELEASE\spring-boot-starter-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\boot\spring-boot\2.0.0.RELEASE\spring-boot-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\spring-context\5.0.4.RELEASE\spring-context-5.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\spring-expression\5.0.4.RELEASE\spring-expression-5.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\boot\spring-boot-starter-logging\2.0.0.RELEASE\spring-boot-starter-logging-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\maven\apache-maven-3.5.0\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\maven\apache-maven-3.5.0\repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;D:\maven\apache-maven-3.5.0\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;D:\maven\apache-maven-3.5.0\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\maven\apache-maven-3.5.0\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\maven\apache-maven-3.5.0\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-context\2.0.0.RELEASE\spring-cloud-context-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\security\spring-security-rsa\1.0.5.RELEASE\spring-security-rsa-1.0.5.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\bouncycastle\bcpkix-jdk15on\1.56\bcpkix-jdk15on-1.56.jar;D:\maven\apache-maven-3.5.0\repository\org\bouncycastle\bcprov-jdk15on\1.56\bcprov-jdk15on-1.56.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-gateway-core\2.0.0.RELEASE\spring-cloud-gateway-core-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\io\projectreactor\addons\reactor-extra\3.1.6.RELEASE\reactor-extra-3.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\io\projectreactor\reactor-core\3.1.5.RELEASE\reactor-core-3.1.5.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\reactivestreams\reactive-streams\1.0.2\reactive-streams-1.0.2.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\boot\spring-boot-starter-webflux\2.0.0.RELEASE\spring-boot-starter-webflux-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\boot\spring-boot-starter-json\2.0.0.RELEASE\spring-boot-starter-json-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\com\fasterxml\jackson\core\jackson-databind\2.9.4\jackson-databind-2.9.4.jar;D:\maven\apache-maven-3.5.0\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.4\jackson-datatype-jdk8-2.9.4.jar;D:\maven\apache-maven-3.5.0\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.4\jackson-datatype-jsr310-2.9.4.jar;D:\maven\apache-maven-3.5.0\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.4\jackson-module-parameter-names-2.9.4.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\boot\spring-boot-starter-reactor-netty\2.0.0.RELEASE\spring-boot-starter-reactor-netty-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\io\projectreactor\ipc\reactor-netty\0.7.5.RELEASE\reactor-netty-0.7.5.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-codec-http\4.1.22.Final\netty-codec-http-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-codec\4.1.22.Final\netty-codec-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-handler\4.1.22.Final\netty-handler-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-buffer\4.1.22.Final\netty-buffer-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-transport\4.1.22.Final\netty-transport-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-resolver\4.1.22.Final\netty-resolver-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-handler-proxy\4.1.22.Final\netty-handler-proxy-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-codec-socks\4.1.22.Final\netty-codec-socks-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-transport-native-epoll\4.1.22.Final\netty-transport-native-epoll-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-common\4.1.22.Final\netty-common-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\io\netty\netty-transport-native-unix-common\4.1.22.Final\netty-transport-native-unix-common-4.1.22.Final.jar;D:\maven\apache-maven-3.5.0\repository\org\hibernate\validator\hibernate-validator\6.0.7.Final\hibernate-validator-6.0.7.Final.jar;D:\maven\apache-maven-3.5.0\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\maven\apache-maven-3.5.0\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;D:\maven\apache-maven-3.5.0\repository\com\fasterxml\classmate\1.3.4\classmate-1.3.4.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\spring-webflux\5.0.4.RELEASE\spring-webflux-5.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\synchronoss\cloud\nio-multipart-parser\1.1.0\nio-multipart-parser-1.1.0.jar;D:\maven\apache-maven-3.5.0\repository\org\synchronoss\cloud\nio-stream-storage\1.1.3\nio-stream-storage-1.1.3.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-starter-alibaba-nacos-discovery\0.2.2.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-0.2.2.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-alibaba-nacos-discovery\0.2.2.RELEASE\spring-cloud-alibaba-nacos-discovery-0.2.2.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\com\alibaba\nacos\nacos-client\1.0.0\nacos-client-1.0.0.jar;D:\maven\apache-maven-3.5.0\repository\com\alibaba\nacos\nacos-common\1.0.0\nacos-common-1.0.0.jar;D:\maven\apache-maven-3.5.0\repository\commons-io\commons-io\2.2\commons-io-2.2.jar;D:\maven\apache-maven-3.5.0\repository\org\apache\commons\commons-lang3\3.7\commons-lang3-3.7.jar;D:\maven\apache-maven-3.5.0\repository\com\alibaba\nacos\nacos-api\1.0.0\nacos-api-1.0.0.jar;D:\maven\apache-maven-3.5.0\repository\com\alibaba\fastjson\1.2.47\fastjson-1.2.47.jar;D:\maven\apache-maven-3.5.0\repository\com\google\guava\guava\19.0\guava-19.0.jar;D:\maven\apache-maven-3.5.0\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;D:\maven\apache-maven-3.5.0\repository\com\fasterxml\jackson\core\jackson-core\2.9.4\jackson-core-2.9.4.jar;D:\maven\apache-maven-3.5.0\repository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-starter-openfeign\2.0.0.RELEASE\spring-cloud-starter-openfeign-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-openfeign-core\2.0.0.RELEASE\spring-cloud-openfeign-core-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.0.RELEASE\spring-boot-autoconfigure-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.0.0.RELEASE\spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\boot\spring-boot-starter-aop\2.0.0.RELEASE\spring-boot-starter-aop-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\spring-aop\5.0.4.RELEASE\spring-aop-5.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.13.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\spring-web\5.0.4.RELEASE\spring-web-5.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\spring-beans\5.0.4.RELEASE\spring-beans-5.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\spring-core\5.0.4.RELEASE\spring-core-5.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\spring-jcl\5.0.4.RELEASE\spring-jcl-5.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-commons\2.0.0.RELEASE\spring-cloud-commons-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\security\spring-security-crypto\5.0.3.RELEASE\spring-security-crypto-5.0.3.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\io\github\openfeign\feign-core\9.5.1\feign-core-9.5.1.jar;D:\maven\apache-maven-3.5.0\repository\io\github\openfeign\feign-slf4j\9.5.1\feign-slf4j-9.5.1.jar;D:\maven\apache-maven-3.5.0\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\maven\apache-maven-3.5.0\repository\io\github\openfeign\feign-hystrix\9.5.1\feign-hystrix-9.5.1.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\archaius\archaius-core\0.6.6\archaius-core-0.6.6.jar;D:\maven\apache-maven-3.5.0\repository\com\google\code\findbugs\annotations\2.0.0\annotations-2.0.0.jar;D:\maven\apache-maven-3.5.0\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\hystrix\hystrix-core\1.4.26\hystrix-core-1.4.26.jar;D:\maven\apache-maven-3.5.0\repository\io\github\openfeign\feign-java8\9.5.1\feign-java8-9.5.1.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.0.0.RELEASE\spring-cloud-starter-netflix-ribbon-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\ribbon\ribbon\2.2.5\ribbon-2.2.5.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\ribbon\ribbon-transport\2.2.5\ribbon-transport-2.2.5.jar;D:\maven\apache-maven-3.5.0\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\maven\apache-maven-3.5.0\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\maven\apache-maven-3.5.0\repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\maven\apache-maven-3.5.0\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\ribbon\ribbon-core\2.2.5\ribbon-core-2.2.5.jar;D:\maven\apache-maven-3.5.0\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\ribbon\ribbon-httpclient\2.2.5\ribbon-httpclient-2.2.5.jar;D:\maven\apache-maven-3.5.0\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\maven\apache-maven-3.5.0\repository\org\apache\httpcomponents\httpclient\4.5.5\httpclient-4.5.5.jar;D:\maven\apache-maven-3.5.0\repository\org\apache\httpcomponents\httpcore\4.4.9\httpcore-4.4.9.jar;D:\maven\apache-maven-3.5.0\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\maven\apache-maven-3.5.0\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\maven\apache-maven-3.5.0\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\maven\apache-maven-3.5.0\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\ribbon\ribbon-loadbalancer\2.2.5\ribbon-loadbalancer-2.2.5.jar;D:\maven\apache-maven-3.5.0\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\maven\apache-maven-3.5.0\repository\io\reactivex\rxjava\1.3.6\rxjava-1.3.6.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.0.0.RELEASE\spring-cloud-starter-netflix-archaius-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.0.0.RELEASE\spring-cloud-netflix-archaius-2.0.0.RELEASE.jar;D:\maven\apache-maven-3.5.0\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar com.study.gateway.AppGateway 2020-09-22 00:37:06.471 INFO 27304 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@41e36e46: startup date [Tue Sep 22 00:37:06 CST 2020]; root of context hierarchy 2020-09-22 00:37:06.918 INFO 27304 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2020-09-22 00:37:07.114 INFO 27304 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$a956fbee] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.0.0.RELEASE) 2020-09-22 00:37:08.073 INFO 27304 --- [ main] com.study.gateway.AppGateway : No active profile set, falling back to default profiles: default 2020-09-22 00:37:08.088 INFO 27304 --- [ main] onfigReactiveWebServerApplicationContext : Refreshing org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext@bcef303: startup date [Tue Sep 22 00:37:08 CST 2020]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@41e36e46 2020-09-22 00:37:08.783 INFO 27304 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=61873b90-a97f-30d7-afc0-e88ae1fa2a8e 2020-09-22 00:37:08.799 INFO 27304 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2020-09-22 00:37:08.896 INFO 27304 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$a956fbee] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-09-22 00:37:09.268 INFO 27304 --- [ main] o.s.w.r.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.reactive.resource.ResourceWebHandler] 2020-09-22 00:37:09.268 INFO 27304 --- [ main] o.s.w.r.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.reactive.resource.ResourceWebHandler] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [After] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Before] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Between] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Cookie] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Header] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Host] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Method] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Path] 2020-09-22 00:37:11.265 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Query] 2020-09-22 00:37:11.266 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [ReadBodyPredicateFactory] 2020-09-22 00:37:11.266 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [RemoteAddr] 2020-09-22 00:37:11.266 INFO 27304 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Weight] 2020-09-22 00:37:11.354 INFO 27304 --- [ main] o.s.w.r.r.m.a.ControllerMethodResolver : Looking for @ControllerAdvice: org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext@bcef303: startup date [Tue Sep 22 00:37:08 CST 2020]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@41e36e46 2020-09-22 00:37:11.520 WARN 27304 --- [ main] o.s.c.n.a.ArchaiusAutoConfiguration : No spring.application.name found, defaulting to 'application' 2020-09-22 00:37:11.527 WARN 27304 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2020-09-22 00:37:11.527 INFO 27304 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2020-09-22 00:37:11.536 WARN 27304 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2020-09-22 00:37:11.536 INFO 27304 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2020-09-22 00:37:12.670 INFO 27304 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 2020-09-22 00:37:13.425 INFO 27304 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2020-09-22 00:37:13.436 INFO 27304 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'refreshScope' has been autodetected for JMX exposure 2020-09-22 00:37:13.437 INFO 27304 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure 2020-09-22 00:37:13.437 INFO 27304 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'environmentManager' has been autodetected for JMX exposure 2020-09-22 00:37:13.440 INFO 27304 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager] 2020-09-22 00:37:13.453 INFO 27304 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope] 2020-09-22 00:37:13.463 INFO 27304 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=bcef303,type=ConfigurationPropertiesRebinder] 2020-09-22 00:37:13.471 INFO 27304 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 0 2020-09-22 00:37:13.480 ERROR 27304 --- [TaskScheduler-1] o.s.c.a.nacos.discovery.NacosWatch : Error watching Nacos Service change java.lang.IllegalArgumentException: no server available at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:354) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:346) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:294) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:276) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:252) ~[nacos-client-1.0.0.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:525) ~[nacos-client-1.0.0.jar:na] at org.springframework.cloud.alibaba.nacos.discovery.NacosWatch.nacosServicesWatch(NacosWatch.java:127) ~[spring-cloud-alibaba-nacos-discovery-0.2.2.RELEASE.jar:0.2.2.RELEASE] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_162] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[na:1.8.0_162] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_162] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[na:1.8.0_162] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_162] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_162] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_162] 2020-09-22 00:37:14.128 INFO 27304 --- [ctor-http-nio-1] r.ipc.netty.tcp.BlockingNettyContext : Started HttpServer on /0:0:0:0:0:0:0:0:8080 2020-09-22 00:37:14.128 INFO 27304 --- [ main] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port(s): 8080 2020-09-22 00:37:14.130 WARN 27304 --- [ main] o.s.c.a.n.registry.NacosServiceRegistry : No service to register for nacos client... 2020-09-22 00:37:14.134 INFO 27304 --- [ main] com.study.gateway.AppGateway : Started AppGateway in 9.779 seconds (JVM running for 11.219)
请求支援。
源码地址:https://gitee.com/itbac/study-openfeign-parent
配置文件如下图
解决了。办法是网关的pom.xml 要独立引用依赖,不能继承父项目的依赖。
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!--独立依赖,解决无法启动问题-->
<!--<parent>--> <!--<groupId>com.itbac</groupId>--> <!--<artifactId>study-openfeign-parent</artifactId>--> <!--<version>1.0-SNAPSHOT</version>--> <!--</parent>--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> <artifactId>study-gateway</artifactId> <version>1.0.0.RELEASE</version> <dependencies> <!--网关依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> <version>2.0.0.RELEASE</version> </dependency> <!--nacos注册中心--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> <version>0.2.2.RELEASE</version> </dependency> </dependencies> </project>