Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-11-30 13:32:25.538 ERROR 9600 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 3 of method eurekaRegistration in org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration required a bean of type 'com.netflix.appinfo.HealthCheckHandler' that could not be found.
- Bean method 'eurekaHealthCheckHandler' not loaded because @ConditionalOnProperty (eureka.client.healthcheck.enabled) did not find property 'eureka.client.healthcheck.enabled'
Action:
Consider revisiting the conditions above or defining a bean of type 'com.netflix.appinfo.HealthCheckHandler' in your configuration.
解决方法:
添加如下配置:
eureka.client.healthcheck.enabled=true