更改BUILDSNAPSHOT和openfeign后项目找不到productClient
来源:6-5 Spring Cloud Bus实操.mp4
天天就是学
2019-03-15
报错信息
D:\jdk1.8\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:2612,suspend=y,server=n -Dserver.port=8081 -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=2611 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:C:\Users\Administrator\.IntelliJIdea2018.3\system\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "D:\jdk1.8\jre\lib\charsets.jar;D:\jdk1.8\jre\lib\deploy.jar;D:\jdk1.8\jre\lib\ext\access-bridge-64.jar;D:\jdk1.8\jre\lib\ext\cldrdata.jar;D:\jdk1.8\jre\lib\ext\dnsns.jar;D:\jdk1.8\jre\lib\ext\jaccess.jar;D:\jdk1.8\jre\lib\ext\jfxrt.jar;D:\jdk1.8\jre\lib\ext\localedata.jar;D:\jdk1.8\jre\lib\ext\nashorn.jar;D:\jdk1.8\jre\lib\ext\sunec.jar;D:\jdk1.8\jre\lib\ext\sunjce_provider.jar;D:\jdk1.8\jre\lib\ext\sunmscapi.jar;D:\jdk1.8\jre\lib\ext\sunpkcs11.jar;D:\jdk1.8\jre\lib\ext\zipfs.jar;D:\jdk1.8\jre\lib\javaws.jar;D:\jdk1.8\jre\lib\jce.jar;D:\jdk1.8\jre\lib\jfr.jar;D:\jdk1.8\jre\lib\jfxswt.jar;D:\jdk1.8\jre\lib\jsse.jar;D:\jdk1.8\jre\lib\management-agent.jar;D:\jdk1.8\jre\lib\plugin.jar;D:\jdk1.8\jre\lib\resources.jar;D:\jdk1.8\jre\lib\rt.jar;D:\ideaProjects\order\server\target\classes;D:\repository\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.0.4.BUILD-SNAPSHOT\spring-cloud-starter-netflix-eureka-client-2.0.4.BUILD-20190315.000337-159.jar;D:\repository\org\springframework\cloud\spring-cloud-starter\2.0.4.BUILD-SNAPSHOT\spring-cloud-starter-2.0.4.BUILD-20190315.011101-159.jar;D:\repository\org\springframework\security\spring-security-rsa\1.0.7.RELEASE\spring-security-rsa-1.0.7.RELEASE.jar;D:\repository\org\bouncycastle\bcpkix-jdk15on\1.60\bcpkix-jdk15on-1.60.jar;D:\repository\org\bouncycastle\bcprov-jdk15on\1.60\bcprov-jdk15on-1.60.jar;D:\repository\org\springframework\cloud\spring-cloud-netflix-core\2.0.4.BUILD-SNAPSHOT\spring-cloud-netflix-core-2.0.4.BUILD-20190315.000129-160.jar;D:\repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.0.4.BUILD-SNAPSHOT\spring-cloud-netflix-eureka-client-2.0.4.BUILD-20190315.000309-159.jar;D:\repository\com\netflix\eureka\eureka-client\1.9.3\eureka-client-1.9.3.jar;D:\repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\repository\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar;D:\repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\repository\com\google\guava\guava\16.0\guava-16.0.jar;D:\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;D:\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\repository\org\apache\httpcomponents\httpclient\4.5.5\httpclient-4.5.5.jar;D:\repository\org\apache\httpcomponents\httpcore\4.4.9\httpcore-4.4.9.jar;D:\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;D:\repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\repository\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;D:\repository\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.9.4\jackson-core-2.9.4.jar;D:\repository\com\netflix\eureka\eureka-core\1.9.3\eureka-core-1.9.3.jar;D:\repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;D:\repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.0.4.BUILD-SNAPSHOT\spring-cloud-starter-netflix-archaius-2.0.4.BUILD-20190315.000323-159.jar;D:\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.0.4.BUILD-SNAPSHOT\spring-cloud-netflix-ribbon-2.0.4.BUILD-20190315.000050-161.jar;D:\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.0.4.BUILD-SNAPSHOT\spring-cloud-netflix-archaius-2.0.4.BUILD-20190315.000022-161.jar;D:\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.0.4.BUILD-SNAPSHOT\spring-cloud-starter-netflix-ribbon-2.0.4.BUILD-20190315.000330-159.jar;D:\repository\com\netflix\ribbon\ribbon\2.2.5\ribbon-2.2.5.jar;D:\repository\com\netflix\ribbon\ribbon-transport\2.2.5\ribbon-transport-2.2.5.jar;D:\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\repository\com\netflix\ribbon\ribbon-core\2.2.5\ribbon-core-2.2.5.jar;D:\repository\com\netflix\ribbon\ribbon-httpclient\2.2.5\ribbon-httpclient-2.2.5.jar;D:\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;D:\repository\com\netflix\ribbon\ribbon-loadbalancer\2.2.5\ribbon-loadbalancer-2.2.5.jar;D:\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\repository\io\reactivex\rxjava\1.3.6\rxjava-1.3.6.jar;D:\repository\com\netflix\ribbon\ribbon-eureka\2.2.5\ribbon-eureka-2.2.5.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;D:\repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;D:\repository\org\springframework\boot\spring-boot-starter\2.0.0.BUILD-SNAPSHOT\spring-boot-starter-2.0.0.BUILD-20180301.043915-633.jar;D:\repository\org\springframework\boot\spring-boot\2.0.0.BUILD-SNAPSHOT\spring-boot-2.0.0.BUILD-20180301.043920-633.jar;D:\repository\org\springframework\boot\spring-boot-starter-logging\2.0.0.BUILD-SNAPSHOT\spring-boot-starter-logging-2.0.0.BUILD-20180301.043903-634.jar;D:\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;D:\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;D:\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;D:\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;D:\repository\org\springframework\spring-core\5.0.4.RELEASE\spring-core-5.0.4.RELEASE.jar;D:\repository\org\springframework\spring-jcl\5.0.4.RELEASE\spring-jcl-5.0.4.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.0.0.BUILD-SNAPSHOT\spring-boot-starter-data-jpa-2.0.0.BUILD-20180301.043850-634.jar;D:\repository\org\springframework\boot\spring-boot-starter-aop\2.0.0.BUILD-SNAPSHOT\spring-boot-starter-aop-2.0.0.BUILD-20180301.043844-635.jar;D:\repository\org\springframework\spring-aop\5.0.4.RELEASE\spring-aop-5.0.4.RELEASE.jar;D:\repository\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.13.jar;D:\repository\org\springframework\boot\spring-boot-starter-jdbc\2.0.0.BUILD-SNAPSHOT\spring-boot-starter-jdbc-2.0.0.BUILD-20180301.043858-634.jar;D:\repository\com\zaxxer\HikariCP\2.7.8\HikariCP-2.7.8.jar;D:\repository\org\springframework\spring-jdbc\5.0.4.RELEASE\spring-jdbc-5.0.4.RELEASE.jar;D:\repository\org\hibernate\hibernate-core\5.2.14.Final\hibernate-core-5.2.14.Final.jar;D:\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;D:\repository\org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.0.Final\hibernate-jpa-2.1-api-1.0.0.Final.jar;D:\repository\org\javassist\javassist\3.22.0-GA\javassist-3.22.0-GA.jar;D:\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\repository\org\jboss\jandex\2.0.3.Final\jandex-2.0.3.Final.jar;D:\repository\com\fasterxml\classmate\1.3.4\classmate-1.3.4.jar;D:\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;D:\repository\org\hibernate\common\hibernate-commons-annotations\5.0.1.Final\hibernate-commons-annotations-5.0.1.Final.jar;D:\repository\javax\transaction\javax.transaction-api\1.2\javax.transaction-api-1.2.jar;D:\repository\org\springframework\data\spring-data-jpa\2.0.5.RELEASE\spring-data-jpa-2.0.5.RELEASE.jar;D:\repository\org\springframework\data\spring-data-commons\2.0.5.RELEASE\spring-data-commons-2.0.5.RELEASE.jar;D:\repository\org\springframework\spring-orm\5.0.4.RELEASE\spring-orm-5.0.4.RELEASE.jar;D:\repository\org\springframework\spring-context\5.0.4.RELEASE\spring-context-5.0.4.RELEASE.jar;D:\repository\org\springframework\spring-expression\5.0.4.RELEASE\spring-expression-5.0.4.RELEASE.jar;D:\repository\org\springframework\spring-tx\5.0.4.RELEASE\spring-tx-5.0.4.RELEASE.jar;D:\repository\org\springframework\spring-beans\5.0.4.RELEASE\spring-beans-5.0.4.RELEASE.jar;D:\repository\org\springframework\spring-aspects\5.0.4.RELEASE\spring-aspects-5.0.4.RELEASE.jar;D:\repository\mysql\mysql-connector-java\8.0.11\mysql-connector-java-8.0.11.jar;D:\repository\com\google\protobuf\protobuf-java\2.6.0\protobuf-java-2.6.0.jar;D:\repository\org\projectlombok\lombok\1.16.20\lombok-1.16.20.jar;D:\repository\com\google\code\gson\gson\2.8.2\gson-2.8.2.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-openfeign\2.0.4.BUILD-SNAPSHOT\spring-cloud-starter-openfeign-2.0.4.BUILD-20190315.013541-161.jar;D:\repository\org\springframework\cloud\spring-cloud-openfeign-core\2.0.4.BUILD-SNAPSHOT\spring-cloud-openfeign-core-2.0.4.BUILD-20190315.013536-161.jar;D:\repository\io\github\openfeign\form\feign-form-spring\3.3.0\feign-form-spring-3.3.0.jar;D:\repository\io\github\openfeign\form\feign-form\3.3.0\feign-form-3.3.0.jar;D:\repository\com\google\code\findbugs\annotations\3.0.1\annotations-3.0.1.jar;D:\repository\net\jcip\jcip-annotations\1.0\jcip-annotations-1.0.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;D:\repository\commons-fileupload\commons-fileupload\1.3.3\commons-fileupload-1.3.3.jar;D:\repository\commons-io\commons-io\2.2\commons-io-2.2.jar;D:\repository\org\springframework\spring-web\5.0.4.RELEASE\spring-web-5.0.4.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-commons\2.0.4.BUILD-SNAPSHOT\spring-cloud-commons-2.0.4.BUILD-20190315.011054-159.jar;D:\repository\org\springframework\security\spring-security-crypto\5.0.3.RELEASE\spring-security-crypto-5.0.3.RELEASE.jar;D:\repository\io\github\openfeign\feign-core\9.7.0\feign-core-9.7.0.jar;D:\repository\io\github\openfeign\feign-slf4j\9.7.0\feign-slf4j-9.7.0.jar;D:\repository\io\github\openfeign\feign-hystrix\9.7.0\feign-hystrix-9.7.0.jar;D:\repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;D:\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\repository\io\github\openfeign\feign-java8\9.7.0\feign-java8-9.7.0.jar;D:\repository\com\imooc\product-client\0.0.1-SNAPSHOT\product-client-0.0.1-SNAPSHOT.jar;D:\repository\com\imooc\product-common\0.0.1-SNAPSHOT\product-common-0.0.1-SNAPSHOT.jar;D:\repository\org\springframework\cloud\spring-cloud-config-client\2.0.4.BUILD-SNAPSHOT\spring-cloud-config-client-2.0.4.BUILD-20190315.020759-162.jar;D:\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.0.BUILD-SNAPSHOT\spring-boot-autoconfigure-2.0.0.BUILD-20180301.043806-635.jar;D:\repository\org\springframework\cloud\spring-cloud-context\2.0.4.BUILD-SNAPSHOT\spring-cloud-context-2.0.4.BUILD-20190315.011002-160.jar;D:\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\repository\com\fasterxml\jackson\core\jackson-databind\2.9.4\jackson-databind-2.9.4.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-bus-amqp\2.0.2.BUILD-SNAPSHOT\spring-cloud-starter-bus-amqp-2.0.2.BUILD-20190315.015715-161.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-stream-rabbit\2.0.2.BUILD-SNAPSHOT\spring-cloud-starter-stream-rabbit-2.0.2.BUILD-20181115.181844-5.jar;D:\repository\org\springframework\cloud\spring-cloud-stream-binder-rabbit\2.0.2.BUILD-SNAPSHOT\spring-cloud-stream-binder-rabbit-2.0.2.BUILD-20181115.181840-5.jar;D:\repository\org\springframework\cloud\spring-cloud-stream-binder-rabbit-core\2.0.2.BUILD-SNAPSHOT\spring-cloud-stream-binder-rabbit-core-2.0.2.BUILD-20181115.181622-5.jar;D:\repository\com\rabbitmq\http-client\2.0.1.RELEASE\http-client-2.0.1.RELEASE.jar;D:\repository\org\springframework\spring-webflux\5.0.4.RELEASE\spring-webflux-5.0.4.RELEASE.jar;D:\repository\io\projectreactor\ipc\reactor-netty\0.7.5.RELEASE\reactor-netty-0.7.5.RELEASE.jar;D:\repository\io\netty\netty-codec-http\4.1.22.Final\netty-codec-http-4.1.22.Final.jar;D:\repository\io\netty\netty-codec\4.1.22.Final\netty-codec-4.1.22.Final.jar;D:\repository\io\netty\netty-handler\4.1.22.Final\netty-handler-4.1.22.Final.jar;D:\repository\io\netty\netty-buffer\4.1.22.Final\netty-buffer-4.1.22.Final.jar;D:\repository\io\netty\netty-transport\4.1.22.Final\netty-transport-4.1.22.Final.jar;D:\repository\io\netty\netty-resolver\4.1.22.Final\netty-resolver-4.1.22.Final.jar;D:\repository\io\netty\netty-handler-proxy\4.1.22.Final\netty-handler-proxy-4.1.22.Final.jar;D:\repository\io\netty\netty-codec-socks\4.1.22.Final\netty-codec-socks-4.1.22.Final.jar;D:\repository\io\netty\netty-transport-native-epoll\4.1.22.Final\netty-transport-native-epoll-4.1.22.Final.jar;D:\repository\io\netty\netty-common\4.1.22.Final\netty-common-4.1.22.Final.jar;D:\repository\io\netty\netty-transport-native-unix-common\4.1.22.Final\netty-transport-native-unix-common-4.1.22.Final.jar;D:\repository\org\springframework\boot\spring-boot-starter-amqp\2.0.0.BUILD-SNAPSHOT\spring-boot-starter-amqp-2.0.0.BUILD-20180301.043843-635.jar;D:\repository\org\springframework\amqp\spring-rabbit\2.0.2.RELEASE\spring-rabbit-2.0.2.RELEASE.jar;D:\repository\org\springframework\amqp\spring-amqp\2.0.2.RELEASE\spring-amqp-2.0.2.RELEASE.jar;D:\repository\com\rabbitmq\amqp-client\5.1.2\amqp-client-5.1.2.jar;D:\repository\org\springframework\integration\spring-integration-amqp\5.0.3.RELEASE\spring-integration-amqp-5.0.3.RELEASE.jar;D:\repository\org\springframework\integration\spring-integration-jmx\5.0.3.RELEASE\spring-integration-jmx-5.0.3.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-bus\2.0.2.BUILD-SNAPSHOT\spring-cloud-bus-2.0.2.BUILD-20190315.015659-162.jar;D:\repository\org\springframework\cloud\spring-cloud-stream\2.0.2.BUILD-SNAPSHOT\spring-cloud-stream-2.0.2.BUILD-20181115.181216-9.jar;D:\repository\org\springframework\boot\spring-boot-starter-validation\2.0.0.BUILD-SNAPSHOT\spring-boot-starter-validation-2.0.0.BUILD-20180301.043910-634.jar;D:\repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.28\tomcat-embed-el-8.5.28.jar;D:\repository\org\hibernate\validator\hibernate-validator\6.0.7.Final\hibernate-validator-6.0.7.Final.jar;D:\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\repository\org\springframework\spring-messaging\5.0.4.RELEASE\spring-messaging-5.0.4.RELEASE.jar;D:\repository\org\springframework\spring-tuple\1.0.0.RELEASE\spring-tuple-1.0.0.RELEASE.jar;D:\repository\com\esotericsoftware\kryo-shaded\3.0.3\kryo-shaded-3.0.3.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\org\springframework\integration\spring-integration-tuple\1.0.0.RELEASE\spring-integration-tuple-1.0.0.RELEASE.jar;D:\repository\org\springframework\retry\spring-retry\1.2.2.RELEASE\spring-retry-1.2.2.RELEASE.jar;D:\repository\org\springframework\integration\spring-integration-core\5.0.3.RELEASE\spring-integration-core-5.0.3.RELEASE.jar;D:\repository\io\projectreactor\reactor-core\3.1.5.RELEASE\reactor-core-3.1.5.RELEASE.jar;D:\repository\org\reactivestreams\reactive-streams\1.0.2\reactive-streams-1.0.2.jar;D:\repository\io\micrometer\micrometer-core\1.0.1\micrometer-core-1.0.1.jar;D:\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\ideaS\IntelliJ IDEA 2018.3.3\lib\idea_rt.jar" com.imooc.order.OrderApplication
Connected to the target VM, address: '127.0.0.1:2612', transport: 'socket'
2019-03-15 21:51:44.891 INFO 8748 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@349c1daf: startup date [Fri Mar 15 21:51:44 CST 2019]; root of context hierarchy
2019-03-15 21:51:45.281 INFO 8748 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-03-15 21:51:45.352 INFO 8748 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$5a656e8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-03-15 21:51:45.778 INFO 8748 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2019-03-15 21:51:45.870 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2019-03-15 21:51:46.306 INFO 8748 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
2019-03-15 21:51:46.306 INFO 8748 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
2019-03-15 21:51:46.461 INFO 8748 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
2019-03-15 21:51:46.461 INFO 8748 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
2019-03-15 21:51:46.734 INFO 8748 --- [ main] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-03-15 21:51:46.893 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2019-03-15 21:51:46.894 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2019-03-15 21:51:46.894 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2019-03-15 21:51:46.894 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Application is null : false
2019-03-15 21:51:46.894 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2019-03-15 21:51:46.894 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Application version is -1: true
2019-03-15 21:51:46.894 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2019-03-15 21:51:47.169 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : The response status is 200
2019-03-15 21:51:47.173 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Not registering with Eureka server per configuration
2019-03-15 21:51:47.179 INFO 8748 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1552657907176 with initial instances count: 1
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.0.BUILD-SNAPSHOT)
2019-03-15 21:51:47.691 INFO 8748 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://192.168.0.104:8080/
2019-03-15 21:51:50.929 INFO 8748 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=order, profiles=[dev], label=null, version=3ee97edbb4913df5dfdfa84284c3969091ec0ece, state=null
2019-03-15 21:51:50.930 INFO 8748 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource {name='configService', propertySources=[MapPropertySource {name='configClient'}, MapPropertySource {name='https://github.com/hjgpond/config-repo/order-dev.yml'}]}
2019-03-15 21:51:50.935 INFO 8748 --- [ main] com.imooc.order.OrderApplication : No active profile set, falling back to default profiles: default
2019-03-15 21:51:50.952 INFO 8748 --- [ main] onfigReactiveWebServerApplicationContext : Refreshing org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext@d4df0e: startup date [Fri Mar 15 21:51:50 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@349c1daf
2019-03-15 21:51:51.840 INFO 8748 --- [ main] o.s.i.config.IntegrationRegistrar : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2019-03-15 21:51:51.903 INFO 8748 --- [ main] a.ConfigurationClassBeanDefinitionReader : Skipping bean definition for [BeanMethod:name=configurableCompositeMessageConverter,declaringClass=org.springframework.cloud.stream.config.ContentTypeConfiguration]: a definition for bean 'integrationArgumentResolverMessageConverter' already exists. This top-level bean definition is considered as an override.
2019-03-15 21:51:52.091 INFO 8748 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'dataSource' with a different definition: replacing [Root bean: class [null]; scope=refresh; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]] with [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]]
2019-03-15 21:51:52.276 INFO 8748 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=ab86ba17-bb6f-3f49-a303-ef096f7d6d0d
2019-03-15 21:51:52.307 INFO 8748 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2019-03-15 21:51:52.309 INFO 8748 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2019-03-15 21:51:52.321 INFO 8748 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-03-15 21:51:52.397 INFO 8748 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration' of type [org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration$$EnhancerBySpringCGLIB$$aff81219] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-03-15 21:51:52.513 INFO 8748 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$e98c53eb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-03-15 21:51:52.586 INFO 8748 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$547e0f1a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-03-15 21:51:52.644 INFO 8748 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$5a656e8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-03-15 21:51:53.260 INFO 8748 --- [ main] s.w.r.r.m.a.RequestMappingHandlerMapping : Mapped "{[/env/print],methods=[GET]}" onto public java.lang.String com.imooc.order.controller.EnvController.print()
2019-03-15 21:51:53.269 INFO 8748 --- [ main] s.w.r.r.m.a.RequestMappingHandlerMapping : Mapped "{[/order/create],methods=[POST]}" onto public com.imooc.order.VO.ResultVO<java.util.Map<java.lang.String, java.lang.String>> com.imooc.order.controller.OrderController.create(com.imooc.order.form.OrderForm,org.springframework.validation.BindingResult)
2019-03-15 21:51:53.402 INFO 8748 --- [ main] o.s.w.r.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.reactive.resource.ResourceWebHandler]
2019-03-15 21:51:53.402 INFO 8748 --- [ main] o.s.w.r.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.reactive.resource.ResourceWebHandler]
2019-03-15 21:51:53.520 INFO 8748 --- [ main] o.s.w.r.r.m.a.ControllerMethodResolver : Looking for @ControllerAdvice: org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext@d4df0e: startup date [Fri Mar 15 21:51:50 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@349c1daf
2019-03-15 21:51:54.070 INFO 8748 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2019-03-15 21:51:54.236 INFO 8748 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2019-03-15 21:51:54.311 INFO 8748 --- [ main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2019-03-15 21:51:54.326 INFO 8748 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2019-03-15 21:51:54.427 INFO 8748 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.2.14.Final}
2019-03-15 21:51:54.429 INFO 8748 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2019-03-15 21:51:54.482 INFO 8748 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2019-03-15 21:51:54.649 INFO 8748 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
2019-03-15 21:51:55.250 INFO 8748 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2019-03-15 21:51:55.740 WARN 8748 --- [ main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderController': Unsatisfied dependency expressed through field 'orderService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderServiceImpl': Unsatisfied dependency expressed through field 'productClient'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.imooc.product.client.ProductClient' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2019-03-15 21:51:55.741 INFO 8748 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2019-03-15 21:51:55.742 INFO 8748 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2019-03-15 21:51:55.793 INFO 8748 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2019-03-15 21:51:55.803 INFO 8748 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-03-15 21:51:55.994 ERROR 8748 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field productClient in com.imooc.order.service.impl.OrderServiceImpl required a bean of type 'com.imooc.product.client.ProductClient' that could not be found.
Action:
Consider defining a bean of type 'com.imooc.product.client.ProductClient' in your configuration.
Disconnected from the target VM, address: '127.0.0.1:2612', transport: 'socket'
Process finished with exit code 1
最后在这里添加了
package com.imooc.order;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = "com.imooc")
@EnableFeignClients(basePackages = "com.imooc.product.client")
public class OrderApplication {
public static void main(String[] args) {
SpringApplication.run(OrderApplication.class, args);
}
}
2回答
-
product和order用的Feign,版本要一致,修改后,product要重新mvn install.
可以把日志格式化一下。
012019-03-17 -
天天就是学
提问者
2019-03-15
product项目
D:\ideaProjects\product>mvn clean install -Dmaven.test.skip=true -U
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] product [pom]
[INFO] product-common [jar]
[INFO] product-client [jar]
[INFO] product-server [jar]
[INFO]
[INFO] -------------------------< com.imooc:product >--------------------------
[INFO] Building product 0.0.1-SNAPSHOT [1/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ product ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ product ---
[INFO] Installing D:\ideaProjects\product\pom.xml to D:\repository\com\imooc\product\0.0.1-SNAPSHOT\product-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ----------------------< com.imooc:product-common >----------------------
[INFO] Building product-common 0.0.1-SNAPSHOT [2/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ product-common ---
[INFO] Deleting D:\ideaProjects\product\common\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ product-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\ideaProjects\product\common\src\main\resources
[INFO] skip non existing resourceDirectory D:\ideaProjects\product\common\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ product-common ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to D:\ideaProjects\product\common\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ product-common ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ product-common ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ product-common ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ product-common ---
[INFO] Building jar: D:\ideaProjects\product\common\target\product-common-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ product-common ---
[INFO] Installing D:\ideaProjects\product\common\target\product-common-0.0.1-SNAPSHOT.jar to D:\repository\com\imooc\product-commo
n\0.0.1-SNAPSHOT\product-common-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\ideaProjects\product\common\pom.xml to D:\repository\com\imooc\product-common\0.0.1-SNAPSHOT\product-common-0
.0.1-SNAPSHOT.pom
[INFO]
[INFO] ----------------------< com.imooc:product-client >----------------------
[INFO] Building product-client 0.0.1-SNAPSHOT [3/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ product-client ---
[INFO] Deleting D:\ideaProjects\product\client\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ product-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\ideaProjects\product\client\src\main\resources
[INFO] skip non existing resourceDirectory D:\ideaProjects\product\client\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ product-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\ideaProjects\product\client\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ product-client ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ product-client ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ product-client ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ product-client ---
[INFO] Building jar: D:\ideaProjects\product\client\target\product-client-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ product-client ---
[INFO] Installing D:\ideaProjects\product\client\target\product-client-0.0.1-SNAPSHOT.jar to D:\repository\com\imooc\product-clien
t\0.0.1-SNAPSHOT\product-client-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\ideaProjects\product\client\pom.xml to D:\repository\com\imooc\product-client\0.0.1-SNAPSHOT\product-client-0
.0.1-SNAPSHOT.pom
[INFO]
[INFO] ----------------------< com.imooc:product-server >----------------------
[INFO] Building product-server 0.0.1-SNAPSHOT [4/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ product-server ---
[INFO] Deleting D:\ideaProjects\product\server\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ product-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ product-server ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 19 source files to D:\ideaProjects\product\server\target\classes
[WARNING] /D:/ideaProjects/product/server/src/main/java/com/imooc/product/controller/ProductController.java: 某些输入文件使用了未
经检查或不安全的操作。
[WARNING] /D:/ideaProjects/product/server/src/main/java/com/imooc/product/controller/ProductController.java: 有关详细信息, 请使用
-Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ product-server ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ product-server ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ product-server ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ product-server ---
[INFO] Building jar: D:\ideaProjects\product\server\target\product-server-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.0.0.M3:repackage (default) @ product-server ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ product-server ---
[INFO] Installing D:\ideaProjects\product\server\target\product-server-0.0.1-SNAPSHOT.jar to D:\repository\com\imooc\product-serve
r\0.0.1-SNAPSHOT\product-server-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\ideaProjects\product\server\pom.xml to D:\repository\com\imooc\product-server\0.0.1-SNAPSHOT\product-server-0
.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for product 0.0.1-SNAPSHOT:
[INFO]
[INFO] product ............................................ SUCCESS [ 2.750 s]
[INFO] product-common ..................................... SUCCESS [ 6.463 s]
[INFO] product-client ..................................... SUCCESS [ 0.948 s]
[INFO] product-server ..................................... SUCCESS [ 8.266 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.382 s
[INFO] Finished at: 2019-03-15T22:01:43+08:00
[INFO] ------------------------------------------------------------------------
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
5668 学习 · 2489 问题
相似问题