springcloud学习的坑

一:启动Euerka作为提供者或者消费者时,启动失败报:Process finished with exit code 0

         Unregistering application EUREKA-SERVICE with eureka with status DOWN

 

解决:(加入web的依赖

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

然后Euerka正常启动,并注入到注册中心:

 Spring cloud有两种服务调用方式,一种是ribbon+restTemplate,另一种是feign。

posted @ 2019-10-25 14:41  不死码农  阅读(449)  评论(0编辑  收藏  举报