初学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