springcloud学习的坑

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

         Unregistering application EUREKA-SERVICE with eureka with status DOWNweb

 

解决:(加入web的依赖

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

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

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

相关文章
相关标签/搜索