2024-01-30 11:21:46 +08:00
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<groupId>com.learning</groupId>
|
|
|
|
|
|
<artifactId>springcloud</artifactId>
|
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
<groupId>org.learning</groupId>
|
|
|
|
|
|
<artifactId>springcloud-consumer-dept-80</artifactId>
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<name>springcloud-consumer-dept-80</name>
|
|
|
|
|
|
<url>http://maven.apache.org</url>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!--需要实体API,Web-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.learning</groupId>
|
|
|
|
|
|
<artifactId>springcloud-api</artifactId>
|
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!--Spring boot web-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2024-02-19 11:07:51 +08:00
|
|
|
|
<!-- 在消费者(客户端)集成Ribbon -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-ribbon</artifactId>
|
|
|
|
|
|
<version>1.4.6.RELEASE</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 配置eureka 依赖,因为Ribbon需要从服务注册中心获知哪些服务可用 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-eureka</artifactId>
|
|
|
|
|
|
<version>1.4.6.RELEASE</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 添加Feign依赖 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
|
|
|
|
|
<version>2.2.2.RELEASE</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-netflix-eureka-client</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2024-01-30 11:21:46 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
</project>
|