Spring Cloud搭建eureka client时ctrl

2018-11-22  本文已影响0人  扎你p屁

学习Spring Cloud过程中,在测试eureka集群可用性时,发现用ctrl+c结束程序总是报错,BeanCreationNotAllowedException,导致client无法从注册中心unregister,修正方法,在properties文件中加

spring.cloud.refresh.enabled=false

即可

上一篇 下一篇

猜你喜欢

热点阅读