springCloud 无法注册服务到eureka

初学springCloud,学着网上的教程尝试去搭建最简单的服务注册发现

在创建好注册中心后,发现无法将服务注册到eureka中

编译器都没有问题

换了三个版本,每个版本报错都不一样

 

Finchley.BUILD-SNAPSHOT版本

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!)

 

Finchley.M8版本

报404错误

 

Finchley.RELEASE版本

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.0.0.RELEASE)

2018-07-24 17:36:56.380  INFO 12988 --- [           main] com.ccre.EurekaClientApplication         : No active profile set, falling back to default profiles: default
2018-07-24 17:36:56.395  INFO 12988 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@4b23c30a: startup date [Tue Jul 24 17:36:56 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@4a94ee4
2018-07-24 17:36:56.949  INFO 12988 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=a2f83c21-139d-3aec-946d-b2fe447b027d
2018-07-24 17:36:56.970  INFO 12988 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-07-24 17:36:57.068  INFO 12988 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigu
  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值