alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.29k stars 12.84k forks source link

spring cloud 配置启动失败 #441

Closed WengJim closed 5 years ago

WengJim commented 5 years ago

spring boot 经过测试 在这里可以处理解决:https://github.com/alibaba/nacos/issues/326

spring cloud 就报错了。 配置版本: 1.spring boot :1.5.6.RELEASE 2.spring cloud :Dalston.SR5 3.nacos:

org.springframework.cloud
        <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        <version>0.1.0.RELEASE</version>
    </dependency>

-Dspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 我是根据官网指引配置的。。就加了这个。。

具体信息: D:\JAVA_HOME\jdk1.8.0_162\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:57986,suspend=y,server=n -Dvisualvm.id=9410556827178 -Dapp.id=xxx-zuul -Denv=dev -Ddev_meta=http://192.168.1.143:8080 -Dapollo.cluster=test -Dspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 -Xmx512m -Xms512m -Xmn1g -Xss128k -Dmanagement.security.enabled=false -javaagent:C:\Users\WengJq.IntelliJIdea2018.1\system\captureAgent\debugger-agent.jar=file:/C:/Users/WengJq/AppData/Local/Temp/capture43124.props -Dfile.encoding=UTF-8 -classpath "D:\JAVA_HOME\jdk1.8.0_162\jre\lib\charsets.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\deploy.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\access-bridge-64.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\cldrdata.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\dnsns.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\jaccess.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\jfxrt.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\localedata.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\nashorn.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\sunec.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\sunjce_provider.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\sunmscapi.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\sunpkcs11.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\ext\zipfs.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\javaws.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\jce.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\jfr.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\jfxswt.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\jsse.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\management-agent.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\plugin.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\resources.jar;D:\JAVA_HOME\jdk1.8.0_162\jre\lib\rt.jar;D:\longteng\eureka-zuul\target\classes;D:.m2\repository\org\springframework\cloud\spring-cloud-starter-feign\1.3.4.RELEASE\spring-cloud-starter-feign-1.3.4.RELEASE.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-starter\1.2.3.RELEASE\spring-cloud-starter-1.2.3.RELEASE.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-context\1.2.3.RELEASE\spring-cloud-context-1.2.3.RELEASE.jar;D:.m2\repository\org\springframework\security\spring-security-rsa\1.0.3.RELEASE\spring-security-rsa-1.0.3.RELEASE.jar;D:.m2\repository\org\bouncycastle\bcpkix-jdk15on\1.55\bcpkix-jdk15on-1.55.jar;D:.m2\repository\org\bouncycastle\bcprov-jdk15on\1.55\bcprov-jdk15on-1.55.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-netflix-core\1.3.4.RELEASE\spring-cloud-netflix-core-1.3.4.RELEASE.jar;D:.m2\repository\org\springframework\boot\spring-boot\1.5.6.RELEASE\spring-boot-1.5.6.RELEASE.jar;D:.m2\repository\org\springframework\boot\spring-boot-autoconfigure\1.5.6.RELEASE\spring-boot-autoconfigure-1.5.6.RELEASE.jar;D:.m2\repository\org\springframework\spring-web\4.3.10.RELEASE\spring-web-4.3.10.RELEASE.jar;D:.m2\repository\org\springframework\spring-aop\4.3.10.RELEASE\spring-aop-4.3.10.RELEASE.jar;D:.m2\repository\org\springframework\spring-beans\4.3.10.RELEASE\spring-beans-4.3.10.RELEASE.jar;D:.m2\repository\org\springframework\spring-context\4.3.10.RELEASE\spring-context-4.3.10.RELEASE.jar;D:.m2\repository\org\springframework\spring-expression\4.3.10.RELEASE\spring-expression-4.3.10.RELEASE.jar;D:.m2\repository\org\springframework\spring-core\4.3.10.RELEASE\spring-core-4.3.10.RELEASE.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-commons\1.2.3.RELEASE\spring-cloud-commons-1.2.3.RELEASE.jar;D:.m2\repository\org\springframework\security\spring-security-crypto\4.2.3.RELEASE\spring-security-crypto-4.2.3.RELEASE.jar;D:.m2\repository\io\github\openfeign\feign-core\9.5.0\feign-core-9.5.0.jar;D:.m2\repository\org\jvnet\animal-sniffer-annotation\1.0\animal-sniffer-annotation-1.0.jar;D:.m2\repository\io\github\openfeign\feign-slf4j\9.5.0\feign-slf4j-9.5.0.jar;D:.m2\repository\io\github\openfeign\feign-hystrix\9.5.0\feign-hystrix-9.5.0.jar;D:.m2\repository\com\netflix\archaius\archaius-core\0.7.4\archaius-core-0.7.4.jar;D:.m2\repository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;D:.m2\repository\com\netflix\hystrix\hystrix-core\1.5.12\hystrix-core-1.5.12.jar;D:.m2\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-starter-ribbon\1.3.4.RELEASE\spring-cloud-starter-ribbon-1.3.4.RELEASE.jar;D:.m2\repository\com\netflix\ribbon\ribbon\2.2.2\ribbon-2.2.2.jar;D:.m2\repository\com\netflix\ribbon\ribbon-transport\2.2.2\ribbon-transport-2.2.2.jar;D:.m2\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:.m2\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:.m2\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:.m2\repository\io\netty\netty-codec-http\4.0.27.Final\netty-codec-http-4.0.27.Final.jar;D:.m2\repository\io\netty\netty-codec\4.0.27.Final\netty-codec-4.0.27.Final.jar;D:.m2\repository\io\netty\netty-handler\4.0.27.Final\netty-handler-4.0.27.Final.jar;D:.m2\repository\io\netty\netty-transport-native-epoll\4.0.27.Final\netty-transport-native-epoll-4.0.27.Final.jar;D:.m2\repository\io\netty\netty-common\4.0.27.Final\netty-common-4.0.27.Final.jar;D:.m2\repository\io\netty\netty-buffer\4.0.27.Final\netty-buffer-4.0.27.Final.jar;D:.m2\repository\io\netty\netty-transport\4.0.27.Final\netty-transport-4.0.27.Final.jar;D:.m2\repository\com\netflix\ribbon\ribbon-core\2.2.2\ribbon-core-2.2.2.jar;D:.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:.m2\repository\com\netflix\ribbon\ribbon-httpclient\2.2.2\ribbon-httpclient-2.2.2.jar;D:.m2\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:.m2\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:.m2\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:.m2\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:.m2\repository\com\netflix\ribbon\ribbon-loadbalancer\2.2.2\ribbon-loadbalancer-2.2.2.jar;D:.m2\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:.m2\repository\io\reactivex\rxjava\1.1.10\rxjava-1.1.10.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-starter-archaius\1.3.4.RELEASE\spring-cloud-starter-archaius-1.3.4.RELEASE.jar;D:.m2\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:.m2\repository\com\google\guava\guava\18.0\guava-18.0.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-starter-zuul\1.3.4.RELEASE\spring-cloud-starter-zuul-1.3.4.RELEASE.jar;D:.m2\repository\org\springframework\boot\spring-boot-starter-web\1.5.6.RELEASE\spring-boot-starter-web-1.5.6.RELEASE.jar;D:.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\1.5.6.RELEASE\spring-boot-starter-tomcat-1.5.6.RELEASE.jar;D:.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.16\tomcat-embed-core-8.5.16.jar;D:.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.16\tomcat-embed-el-8.5.16.jar;D:.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.16\tomcat-embed-websocket-8.5.16.jar;D:.m2\repository\org\hibernate\hibernate-validator\5.3.5.Final\hibernate-validator-5.3.5.Final.jar;D:.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:.m2\repository\org\jboss\logging\jboss-logging\3.3.1.Final\jboss-logging-3.3.1.Final.jar;D:.m2\repository\com\fasterxml\classmate\1.3.3\classmate-1.3.3.jar;D:.m2\repository\org\springframework\spring-webmvc\4.3.10.RELEASE\spring-webmvc-4.3.10.RELEASE.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-starter-hystrix\1.3.4.RELEASE\spring-cloud-starter-hystrix-1.3.4.RELEASE.jar;D:.m2\repository\com\netflix\hystrix\hystrix-metrics-event-stream\1.5.12\hystrix-metrics-event-stream-1.5.12.jar;D:.m2\repository\com\netflix\hystrix\hystrix-serialization\1.5.12\hystrix-serialization-1.5.12.jar;D:.m2\repository\com\fasterxml\jackson\module\jackson-module-afterburner\2.8.9\jackson-module-afterburner-2.8.9.jar;D:.m2\repository\com\netflix\hystrix\hystrix-javanica\1.5.12\hystrix-javanica-1.5.12.jar;D:.m2\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:.m2\repository\org\aspectj\aspectjweaver\1.8.10\aspectjweaver-1.8.10.jar;D:.m2\repository\com\netflix\zuul\zuul-core\1.3.0\zuul-core-1.3.0.jar;D:.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;D:.m2\repository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;D:.m2\repository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;D:.m2\repository\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;D:.m2\repository\com\google\code\gson\gson\2.3.1\gson-2.3.1.jar;D:.m2\repository\com\alibaba\fastjson\1.1.41\fastjson-1.1.41.jar;D:.m2\repository\org\apache\commons\commons-lang3\3.3.2\commons-lang3-3.3.2.jar;D:.m2\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:.m2\repository\com\dragonpass\xxx\xxx-auth-api\1.0-SNAPSHOT\xxx-auth-api-1.0-SNAPSHOT.jar;D:.m2\repository\com\dragonpass\xxx\xxx-user-api\1.0-SNAPSHOT\xxx-user-api-1.0-20181127.055724-52.jar;D:.m2\repository\com\dragonpass\xxx\xxx-common\0.0.1\xxx-common-0.0.1.jar;D:.m2\repository\com\dragon\sign\DragonSignature\DragonSignature\1.0\DragonSignature-1.0.jar;D:.m2\repository\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.8.9\jackson-module-jaxb-annotations-2.8.9.jar;D:.m2\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:.m2\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:.m2\repository\org\apache\poi\poi\3.15\poi-3.15.jar;D:.m2\repository\org\apache\poi\poi-ooxml\3.15\poi-ooxml-3.15.jar;D:.m2\repository\org\apache\poi\poi-ooxml-schemas\3.15\poi-ooxml-schemas-3.15.jar;D:.m2\repository\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;D:.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:.m2\repository\com\github\virtuald\curvesapi\1.04\curvesapi-1.04.jar;D:.m2\repository\org\springframework\spring-jdbc\4.3.10.RELEASE\spring-jdbc-4.3.10.RELEASE.jar;D:.m2\repository\org\springframework\spring-tx\4.3.10.RELEASE\spring-tx-4.3.10.RELEASE.jar;D:.m2\repository\org\mybatis\mybatis\3.2.8\mybatis-3.2.8.jar;D:.m2\repository\org\mybatis\mybatis-spring\1.2.2\mybatis-spring-1.2.2.jar;D:.m2\repository\com\github\pagehelper\pagehelper\4.1.6\pagehelper-4.1.6.jar;D:.m2\repository\com\github\jsqlparser\jsqlparser\0.9.5\jsqlparser-0.9.5.jar;D:.m2\repository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;D:.m2\repository\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;D:.m2\repository\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;D:.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;D:.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;D:.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;D:.m2\repository\commons-fileupload\commons-fileupload\1.3.1\commons-fileupload-1.3.1.jar;D:.m2\repository\commons-beanutils\commons-beanutils\1.9.3\commons-beanutils-1.9.3.jar;D:.m2\repository\org\apache\httpcomponents\httpcore\4.4.6\httpcore-4.4.6.jar;D:.m2\repository\org\apache\httpcomponents\httpclient\4.5.3\httpclient-4.5.3.jar;D:.m2\repository\org\apache\httpcomponents\httpmime\4.5.3\httpmime-4.5.3.jar;D:.m2\repository\org\apache\axis\axis\1.4\axis-1.4.jar;D:.m2\repository\javax\xml\rpc\javax.xml.rpc-api\1.1.1\javax.xml.rpc-api-1.1.1.jar;D:.m2\repository\org\apache\kafka\kafka_2.10\0.10.1.1\kafka_2.10-0.10.1.1.jar;D:.m2\repository\org\apache\kafka\kafka-clients\0.10.1.1\kafka-clients-0.10.1.1.jar;D:.m2\repository\net\jpountz\lz4\lz4\1.3.0\lz4-1.3.0.jar;D:.m2\repository\org\xerial\snappy\snappy-java\1.1.2.6\snappy-java-1.1.2.6.jar;D:.m2\repository\net\sf\jopt-simple\jopt-simple\4.9\jopt-simple-4.9.jar;D:.m2\repository\com\yammer\metrics\metrics-core\2.2.0\metrics-core-2.2.0.jar;D:.m2\repository\org\scala-lang\scala-library\2.10.6\scala-library-2.10.6.jar;D:.m2\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:.m2\repository\com\101tec\zkclient\0.9\zkclient-0.9.jar;D:.m2\repository\org\apache\zookeeper\zookeeper\3.4.8\zookeeper-3.4.8.jar;D:.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;D:.m2\repository\io\netty\netty\3.7.0.Final\netty-3.7.0.Final.jar;D:.m2\repository\org\apache\commons\commons-collections4\4.2\commons-collections4-4.2.jar;D:.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;D:.m2\repository\com\fasterxml\jackson\core\jackson-core\2.8.9\jackson-core-2.8.9.jar;D:.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.8.9\jackson-databind-2.8.9.jar;D:.m2\repository\com\ctrip\framework\apollo\apollo-client\1.0.0\apollo-client-1.0.0.jar;D:.m2\repository\com\ctrip\framework\apollo\apollo-core\1.0.0\apollo-core-1.0.0.jar;D:.m2\repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:.m2\repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:.m2\repository\org\projectlombok\lombok\1.16.14\lombok-1.16.14.jar;D:.m2\repository\com\dragonpass\xxx\xxx-statistics-api\1.0-SNAPSHOT\xxx-statistics-api-1.0-SNAPSHOT.jar;D:.m2\repository\javax\persistence\persistence-api\1.0.2\persistence-api-1.0.2.jar;D:.m2\repository\org\springframework\boot\spring-boot-starter-actuator\1.5.6.RELEASE\spring-boot-starter-actuator-1.5.6.RELEASE.jar;D:.m2\repository\org\springframework\boot\spring-boot-starter\1.5.6.RELEASE\spring-boot-starter-1.5.6.RELEASE.jar;D:.m2\repository\org\springframework\boot\spring-boot-starter-logging\1.5.6.RELEASE\spring-boot-starter-logging-1.5.6.RELEASE.jar;D:.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:.m2\repository\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;D:.m2\repository\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;D:.m2\repository\org\springframework\boot\spring-boot-actuator\1.5.6.RELEASE\spring-boot-actuator-1.5.6.RELEASE.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-starter-alibaba-nacos-discovery\0.1.0.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-0.1.0.RELEASE.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-alibaba-nacos-discovery\0.1.0.RELEASE\spring-cloud-alibaba-nacos-discovery-0.1.0.RELEASE.jar;D:.m2\repository\com\alibaba\nacos\nacos-client\0.3.0\nacos-client-0.3.0.jar;D:.m2\repository\com\alibaba\nacos\nacos-common\0.3.0\nacos-common-0.3.0.jar;D:.m2\repository\com\alibaba\nacos\nacos-api\0.3.0\nacos-api-0.3.0.jar;D:.m2\repository\org\codehaus\jackson\jackson-mapper-lgpl\1.9.6\jackson-mapper-lgpl-1.9.6.jar;D:.m2\repository\org\codehaus\jackson\jackson-core-lgpl\1.9.6\jackson-core-lgpl-1.9.6.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\1.4.6.RELEASE\spring-cloud-starter-netflix-ribbon-1.4.6.RELEASE.jar;D:.m2\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\1.4.6.RELEASE\spring-cloud-starter-netflix-archaius-1.4.6.RELEASE.jar;D:\IntelliJ IDEA 2018\lib\idea_rt.jar" cn.com.dragonpass.zuul.ZuulServiceApplication Connected to the target VM, address: '127.0.0.1:57986', transport: 'socket' SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/D:/.m2/repository/ch/qos/logback/logback-classic/1.1.11/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/D:/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] 2018-12-12 17:38:23.934 INFO 5484 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@7ec3394b: startup date [Wed Dec 12 17:38:23 CST 2018]; root of context hierarchy 2018-12-12 17:38:24.165 INFO 5484 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2018-12-12 17:38:24.211 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$6a870419] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v1.5.6.RELEASE)

2018-12-12 17:38:25.660 INFO 5484 --- [ main] c.c.d.zuul.ZuulServiceApplication : No active profile set, falling back to default profiles: default 2018-12-12 17:38:25.680 INFO 5484 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@af9a89f: startup date [Wed Dec 12 17:38:25 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@7ec3394b 2018-12-12 17:38:26.236 INFO 5484 --- [ main] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [spring-config.xml] 2018-12-12 17:38:26.325 INFO 5484 --- [ main] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [spring-context.xml] 2018-12-12 17:38:26.664 INFO 5484 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'counterFactory' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.cloud.netflix.zuul.ZuulServerAutoConfiguration$ZuulMetricsConfiguration; factoryMethodName=counterFactory; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulServerAutoConfiguration$ZuulMetricsConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.cloud.netflix.zuul.ZuulServerAutoConfiguration$ZuulCounterFactoryConfiguration; factoryMethodName=counterFactory; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulServerAutoConfiguration$ZuulCounterFactoryConfiguration.class]] 2018-12-12 17:38:26.772 INFO 5484 --- [ main] c.c.f.f.i.p.DefaultApplicationProvider : App ID is set to xxx-zuul by app.id property from System Property 2018-12-12 17:38:26.776 INFO 5484 --- [ main] c.c.f.f.i.p.DefaultServerProvider : Environment is set to [dev] by JVM system property 'env'. 2018-12-12 17:38:27.074 WARN 5484 --- [ main] c.c.f.a.i.DefaultMetaServerProvider : Could not find meta server address, because it is not available in neither (1) JVM system property 'apollo.meta', (2) OS env variable 'APOLLO_META' (3) property 'apollo.meta' from server.properties nor (4) property 'apollo.meta' from app.properties 2018-12-12 17:38:27.082 INFO 5484 --- [ main] c.c.f.apollo.core.MetaDomainConsts : Located meta server address http://192.168.1.143:8080 for env DEV from com.ctrip.framework.apollo.core.internals.LegacyMetaServerProvider 2018-12-12 17:38:36.339 INFO 5484 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=abbcec1f-eca6-3cec-b204-a541d2643974 2018-12-12 17:38:36.372 INFO 5484 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2018-12-12 17:38:36.398 WARN 5484 --- [ main] figurationPropertiesBindingPostProcessor : Multiple PropertySourcesPlaceholderConfigurer beans registered [propertySourcesPlaceholderConfigurer, org.springframework.context.support.PropertySourcesPlaceholderConfigurer], falling back to Environment 2018-12-12 17:38:36.413 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.auth.api.IAuthApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.414 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.auth.api.IGroupApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.416 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.auth.api.IResourceApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.417 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.auth.api.IRoleApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.420 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.user.api.IUserApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.421 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.user.api.IUserLoginRecordApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.422 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.user.api.IUserRecordApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.423 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.user.api.IUserPasswordLogApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.425 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.statistics.api.IStatisticsApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.426 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.xxx.statistics.api.IStatisticsLogApi' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.585 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsRestTemplateConfiguration' of type [org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsRestTemplateConfiguration$$EnhancerBySpringCGLIB$$8099a75d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:36.916 INFO 5484 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$6a870419] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-12-12 17:38:37.415 INFO 5484 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8888 (http) 2018-12-12 17:38:37.426 INFO 5484 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2018-12-12 17:38:37.428 INFO 5484 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.16 2018-12-12 17:38:37.586 INFO 5484 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2018-12-12 17:38:37.586 INFO 5484 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 11906 ms 2018-12-12 17:38:39.025 INFO 5484 --- [ost-startStop-1] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2018-12-12 17:38:39.310 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/] 2018-12-12 17:38:39.311 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'zuulServlet' to [/zuul/] 2018-12-12 17:38:39.313 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'metricsFilter' to: [/] 2018-12-12 17:38:39.313 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/] 2018-12-12 17:38:39.313 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/] 2018-12-12 17:38:39.313 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/] 2018-12-12 17:38:39.313 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/] 2018-12-12 17:38:39.314 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webRequestLoggingFilter' to: [/] 2018-12-12 17:38:39.314 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'corsFilter' to: [/] 2018-12-12 17:38:39.314 INFO 5484 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/*] 2018-12-12 17:38:39.379 WARN 5484 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2018-12-12 17:38:39.379 INFO 5484 --- [ 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. 2018-12-12 17:38:39.385 INFO 5484 --- [ main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@347123dc 2018-12-12 17:38:39.423 INFO 5484 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@517fbf62: startup date [Wed Dec 12 17:38:39 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@af9a89f 2018-12-12 17:38:39.443 INFO 5484 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring Wed Dec 12 17:38:39 CST 2018 sun.misc.Launcher$AppClassLoader@18b4aac2 JM.Log:INFO Init JM logger with Slf4jLoggerFactory success, sun.misc.Launcher$AppClassLoader@18b4aac2 Wed Dec 12 17:38:39 CST 2018 sun.misc.Launcher$AppClassLoader@18b4aac2 JM.Log:INFO Log root path: C:\Users\WengJq\logs\ Wed Dec 12 17:38:39 CST 2018 sun.misc.Launcher$AppClassLoader@18b4aac2 JM.Log:INFO Set nacos log path: C:\Users\WengJq\logs\nacos 2018-12-12 17:38:40.155 INFO 5484 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@2299f6d7: startup date [Wed Dec 12 17:38:40 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@af9a89f 2018-12-12 17:38:40.178 INFO 5484 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2018-12-12 17:38:40.762 WARN 5484 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2018-12-12 17:38:40.762 INFO 5484 --- [ 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. 2018-12-12 17:38:40.984 INFO 5484 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@af9a89f: startup date [Wed Dec 12 17:38:25 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@7ec3394b 2018-12-12 17:38:41.136 INFO 5484 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/reg]}" onto public void cn.com.dragonpass.zuul.web.controller.visit.TestController.reg() 2018-12-12 17:38:41.139 INFO 5484 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2018-12-12 17:38:41.139 INFO 5484 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2018-12-12 17:38:41.212 INFO 5484 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-12-12 17:38:41.212 INFO 5484 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-12-12 17:38:41.325 INFO 5484 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/*/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-12-12 17:38:42.258 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/mappings || /mappings.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.258 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/service-registry/instance-status],methods=[POST]}" onto public org.springframework.http.ResponseEntity<?> org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint.setStatus(java.lang.String) 2018-12-12 17:38:42.258 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/service-registry/instance-status],methods=[GET]}" onto public org.springframework.http.ResponseEntity org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint.getStatus() 2018-12-12 17:38:42.258 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/configprops || /configprops.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.259 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/info || /info.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.260 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/metrics/{name:.}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.MetricsMvcEndpoint.value(java.lang.String) 2018-12-12 17:38:42.260 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/metrics || /metrics.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.260 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/nacos_discovery || /nacos_discovery.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.261 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/archaius || /archaius.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.262 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/auditevents || /auditevents.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public org.springframework.http.ResponseEntity<?> org.springframework.boot.actuate.endpoint.mvc.AuditEventsMvcEndpoint.findByPrincipalAndAfterAndType(java.lang.String,java.util.Date,java.lang.String) 2018-12-12 17:38:42.263 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/features || /features.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.264 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/loggers/{name:.}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.LoggersMvcEndpoint.get(java.lang.String) 2018-12-12 17:38:42.265 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/loggers/{name:.}],methods=[POST],consumes=[application/vnd.spring-boot.actuator.v1+json || application/json],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.LoggersMvcEndpoint.set(java.lang.String,java.util.Map<java.lang.String, java.lang.String>) 2018-12-12 17:38:42.265 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/loggers || /loggers.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.265 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/hystrix.stream/*]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.cloud.netflix.endpoint.ServletWrappingEndpoint.handle(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.lang.Exception 2018-12-12 17:38:42.266 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/heapdump || /heapdump.json],methods=[GET],produces=[application/octet-stream]}" onto public void org.springframework.boot.actuate.endpoint.mvc.HeapdumpMvcEndpoint.invoke(boolean,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.io.IOException,javax.servlet.ServletException 2018-12-12 17:38:42.267 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/routes || /routes.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.netflix.zuul.RoutesMvcEndpoint.reset() 2018-12-12 17:38:42.267 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/routes || /routes.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.268 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/restart || /restart.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.context.restart.RestartMvcEndpoint.invoke() 2018-12-12 17:38:42.268 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/trace || /trace.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.269 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/refresh || /refresh.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke() 2018-12-12 17:38:42.269 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/env/{name:.}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EnvironmentMvcEndpoint.value(java.lang.String) 2018-12-12 17:38:42.269 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/env || /env.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.271 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/env],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.context.environment.EnvironmentManagerMvcEndpoint.value(java.util.Map<java.lang.String, java.lang.String>) 2018-12-12 17:38:42.271 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/env/reset],methods=[POST]}" onto public java.util.Map<java.lang.String, java.lang.Object> org.springframework.cloud.context.environment.EnvironmentManagerMvcEndpoint.reset() 2018-12-12 17:38:42.272 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/resume || /resume.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke() 2018-12-12 17:38:42.272 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/autoconfig || /autoconfig.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.273 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/dump || /dump.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.273 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/beans || /beans.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke() 2018-12-12 17:38:42.274 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/health || /health.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(javax.servlet.http.HttpServletRequest,java.security.Principal) 2018-12-12 17:38:42.274 INFO 5484 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/pause || /pause.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke() 2018-12-12 17:38:42.410 WARN 5484 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nacosAutoServiceRegistration' defined in class path resource [org/springframework/cloud/alibaba/nacos/NacosDiscoveryAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.alibaba.nacos.registry.NacosAutoServiceRegistration]: Factory method 'nacosAutoServiceRegistration' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.(Lorg/springframework/cloud/client/serviceregistry/ServiceRegistry;Lorg/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties;)V 2018-12-12 17:38:42.413 INFO 5484 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown 2018-12-12 17:38:42.427 WARN 5484 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2018-12-12 17:38:42.427 INFO 5484 --- [ 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. 2018-12-12 17:38:42.430 INFO 5484 --- [ main] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@517fbf62: startup date [Wed Dec 12 17:38:39 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@af9a89f 2018-12-12 17:38:42.431 INFO 5484 --- [ main] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@2299f6d7: startup date [Wed Dec 12 17:38:40 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@af9a89f 2018-12-12 17:38:42.432 INFO 5484 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2018-12-12 17:38:42.437 WARN 5484 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [spring.cloud.inetutils] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.net.Inet6AddressImpl.getHostByAddr(Native Method) java.net.InetAddress$2.getHostByAddr(InetAddress.java:932) java.net.InetAddress.getHostFromNameService(InetAddress.java:617) java.net.InetAddress.getHostName(InetAddress.java:559) java.net.InetAddress.getHostName(InetAddress.java:531) org.springframework.cloud.commons.util.InetUtils$2.call(InetUtils.java:161) org.springframework.cloud.commons.util.InetUtils$2.call(InetUtils.java:158) java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) java.util.concurrent.FutureTask.run(FutureTask.java) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 2018-12-12 17:38:42.453 INFO 5484 --- [ main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-12-12 17:38:42.459 ERROR 5484 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nacosAutoServiceRegistration' defined in class path resource [org/springframework/cloud/alibaba/nacos/NacosDiscoveryAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.alibaba.nacos.registry.NacosAutoServiceRegistration]: Factory method 'nacosAutoServiceRegistration' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.(Lorg/springframework/cloud/client/serviceregistry/ServiceRegistry;Lorg/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties;)V at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at cn.com.dragonpass.zuul.ZuulServiceApplication.main(ZuulServiceApplication.java:34) [classes/:na] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.alibaba.nacos.registry.NacosAutoServiceRegistration]: Factory method 'nacosAutoServiceRegistration' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.(Lorg/springframework/cloud/client/serviceregistry/ServiceRegistry;Lorg/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties;)V at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] ... 18 common frames omitted Caused by: java.lang.NoSuchMethodError: org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.(Lorg/springframework/cloud/client/serviceregistry/ServiceRegistry;Lorg/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties;)V at org.springframework.cloud.alibaba.nacos.registry.NacosAutoServiceRegistration.(NacosAutoServiceRegistration.java:43) ~[spring-cloud-alibaba-nacos-discovery-0.1.0.RELEASE.jar:0.1.0.RELEASE] at org.springframework.cloud.alibaba.nacos.NacosDiscoveryAutoConfiguration.nacosAutoServiceRegistration(NacosDiscoveryAutoConfiguration.java:62) ~[spring-cloud-alibaba-nacos-discovery-0.1.0.RELEASE.jar:0.1.0.RELEASE] at org.springframework.cloud.alibaba.nacos.NacosDiscoveryAutoConfiguration$$EnhancerBySpringCGLIB$$8055f220.CGLIB$nacosAutoServiceRegistration$0() ~[spring-cloud-alibaba-nacos-discovery-0.1.0.RELEASE.jar:0.1.0.RELEASE] at org.springframework.cloud.alibaba.nacos.NacosDiscoveryAutoConfiguration$$EnhancerBySpringCGLIB$$8055f220$$FastClassBySpringCGLIB$$ae057abc.invoke() ~[spring-cloud-alibaba-nacos-discovery-0.1.0.RELEASE.jar:0.1.0.RELEASE] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358) ~[spring-context-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.cloud.alibaba.nacos.NacosDiscoveryAutoConfiguration$$EnhancerBySpringCGLIB$$8055f220.nacosAutoServiceRegistration() ~[spring-cloud-alibaba-nacos-discovery-0.1.0.RELEASE.jar:0.1.0.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_162] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] ... 19 common frames omitted

Disconnected from the target VM, address: '127.0.0.1:57986', transport: 'socket' Java HotSpot(TM) 64-Bit Server VM warning: MaxNewSize (1048576k) is equal to or greater than the entire heap (524288k). A new max generation size of 523776k will be used.

Process finished with exit code 1

flystar32 commented 5 years ago

不好意思文档写的有点偏差,Spring Cloud Alibaba 0.1.0 对应的是 E 版本,0.2.0 对应的是 F 版本,更多版本对应关系参考 WIKI

https://github.com/spring-cloud-incubator/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E

WengJim commented 5 years ago

经测试0.1.0的版本在Edgware.SR1,SR2,RELEASE 不支持。SR3,SR4,SR5支持。所以在配置的时候,需要看看版本号是否一致。