各个服务启动成功,但collection-eureka-feign服务没有同步数据

来源:7-8 实现服务的负载均衡及高可用-运行测试

Yitea

2018-10-30

2018-10-30 20:42:34.683  INFO 3828 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext

2018-10-30 20:42:34.684  INFO 3828 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2907 ms

2018-10-30 20:42:34.941  INFO 3828 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Servlet dispatcherServlet mapped to [/]

2018-10-30 20:42:34.955  INFO 3828 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]

2018-10-30 20:42:34.956  INFO 3828 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]

2018-10-30 20:42:34.956  INFO 3828 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]

2018-10-30 20:42:34.956  INFO 3828 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]

2018-10-30 20:42:36.797  WARN 3828 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2018-10-30 20:42:36.798  INFO 3828 --- [           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-10-30 20:42:36.811  WARN 3828 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2018-10-30 20:42:36.812  INFO 3828 --- [           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-10-30 20:42:36.991  INFO 3828 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

2018-10-30 20:42:37.267  INFO 3828 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@553f17c: startup date [Tue Oct 30 20:42:31 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@3834d63f

2018-10-30 20:42:37.445  INFO 3828 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hello]}" onto public java.lang.String com.ming.spring.cloud.weather.controller.HelloController.hello()

2018-10-30 20:42:37.457  INFO 3828 --- [           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.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)

2018-10-30 20:42:37.459  INFO 3828 --- [           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.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)

2018-10-30 20:42:37.529  INFO 3828 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

2018-10-30 20:42:37.531  INFO 3828 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

2018-10-30 20:42:38.183  INFO 3828 --- [           main] org.quartz.impl.StdSchedulerFactory      : Using default implementation for ThreadExecutor

2018-10-30 20:42:38.223  INFO 3828 --- [           main] org.quartz.core.SchedulerSignalerImpl    : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl

2018-10-30 20:42:38.224  INFO 3828 --- [           main] org.quartz.core.QuartzScheduler          : Quartz Scheduler v.2.3.0 created.

2018-10-30 20:42:38.230  INFO 3828 --- [           main] org.quartz.simpl.RAMJobStore             : RAMJobStore initialized.

2018-10-30 20:42:38.232  INFO 3828 --- [           main] org.quartz.core.QuartzScheduler          : Scheduler meta-data: Quartz Scheduler (v2.3.0) 'quartzScheduler' with instanceId 'NON_CLUSTERED'

  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.

  NOT STARTED.

  Currently in standby mode.

  Number of jobs executed: 0

  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.

  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.


2018-10-30 20:42:38.234  INFO 3828 --- [           main] org.quartz.impl.StdSchedulerFactory      : Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.

2018-10-30 20:42:38.236  INFO 3828 --- [           main] org.quartz.impl.StdSchedulerFactory      : Quartz scheduler version: 2.3.0

2018-10-30 20:42:38.248  INFO 3828 --- [           main] org.quartz.core.QuartzScheduler          : JobFactory set to: org.springframework.boot.autoconfigure.quartz.AutowireCapableBeanJobFactory@72c8e7b

2018-10-30 20:42:40.030  INFO 3828 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup

2018-10-30 20:42:40.061  INFO 3828 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshScope' has been autodetected for JMX exposure

2018-10-30 20:42:40.068  INFO 3828 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure

2018-10-30 20:42:40.082  INFO 3828 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure

2018-10-30 20:42:40.099  INFO 3828 --- [           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]

2018-10-30 20:42:40.130  INFO 3828 --- [           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]

2018-10-30 20:42:40.158  INFO 3828 --- [           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=553f17c,type=ConfigurationPropertiesRebinder]

2018-10-30 20:42:40.186  INFO 3828 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 0

2018-10-30 20:42:40.227  INFO 3828 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING

2018-10-30 20:42:40.335  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1

2018-10-30 20:42:40.471  INFO 3828 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson

2018-10-30 20:42:40.471  INFO 3828 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson

2018-10-30 20:42:40.761  INFO 3828 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml

2018-10-30 20:42:40.761  INFO 3828 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml

2018-10-30 20:42:41.149  INFO 3828 --- [           main] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration

2018-10-30 20:42:41.476  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Disable delta property : false

2018-10-30 20:42:41.480  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null

2018-10-30 20:42:41.481  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false

2018-10-30 20:42:41.486  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Application is null : false

2018-10-30 20:42:41.494  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true

2018-10-30 20:42:41.497  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Application version is -1: true

2018-10-30 20:42:41.499  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server

2018-10-30 20:42:41.887  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : The response status is 200

2018-10-30 20:42:41.897  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30

2018-10-30 20:42:41.904  INFO 3828 --- [           main] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4

2018-10-30 20:42:41.918  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1540903361915 with initial instances count: 9

2018-10-30 20:42:41.935  INFO 3828 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application msa-weather-collection-eureka-feign with eureka with status UP

2018-10-30 20:42:41.938  INFO 3828 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1540903361937, current=UP, previous=STARTING]

2018-10-30 20:42:41.945  INFO 3828 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_MSA-WEATHER-COLLECTION-EUREKA-FEIGN/Ming.mshome.net:msa-weather-collection-eureka-feign:8082: registering service...

2018-10-30 20:42:41.956  INFO 3828 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 2147483647

2018-10-30 20:42:41.960  INFO 3828 --- [           main] o.s.s.quartz.SchedulerFactoryBean        : Starting Quartz Scheduler now

2018-10-30 20:42:41.968  INFO 3828 --- [           main] org.quartz.core.QuartzScheduler          : Scheduler quartzScheduler_$_NON_CLUSTERED started.

2018-10-30 20:42:42.088  INFO 3828 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_MSA-WEATHER-COLLECTION-EUREKA-FEIGN/Ming.mshome.net:msa-weather-collection-eureka-feign:8082 - registration status: 204

2018-10-30 20:42:42.123  INFO 3828 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8082 (http) with context path ''

2018-10-30 20:42:42.129  INFO 3828 --- [           main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8082

2018-10-30 20:42:42.140  INFO 3828 --- [           main] c.ming.spring.cloud.weather.Application  : Started Application in 14.087 seconds (JVM running for 15.026)

2018-10-30 20:47:41.509  INFO 3828 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration

2018-10-30 20:52:41.520  INFO 3828 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration


写回答

1回答

老卫

2018-10-31

应该是编译问题。尝试重新编译启动

0
2
老卫
回复
Yitea
天气数据 API 正常吗?
2018-11-04
共2条回复

从天气项目入门Spring Cloud微服务治理

掌握微服务治理核心技术,紧跟Java技术发展趋势

487 学习 · 115 问题

查看课程