启动Eureka-client直接关闭Shutting down DiscoveryClient

启动eureka-client服务,启动完成直接关闭。相当于服务未启动。

 经过一番折腾之后发现,未添加web配置包,添加之后重启正常,至于原因暂未得知。

添加以下配置


        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

猜你喜欢

转载自blog.csdn.net/ssdate/article/details/88293049