配置都是按照老师给的版本来的,micro-weather-eureka-client-feign启动报错,卡到这了,实在找不到原因,老师能给看看吗?
已解决
最开始用的老师视频给的配置的版本,报错Caused by: java.lang.ClassNotFoundException org.springframework.cloud.client.loadbalancer.LoadBalancedRetryFactory
最终解决方法:
1.
改springBootVersion = '2.0.1.RELEASE'
springCloudVersion = 'Finchley.M9'
报org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServiceRegistration': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
2.
最后对比老师github的配置代码,又追加了 compile('org.springframework.boot:spring-boot-starter-web')这个就可以了