123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?xml version="1.0" encoding="UTF-8"?>
- <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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <!-- 从父项目的pom中取出三要素 -->
- <groupId>com.sf</groupId>
- <artifactId>springcloud-demo</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <!-- <relativePath/> <!– lookup parent from repository –>-->
- </parent>
- <groupId>com.sf</groupId>
- <artifactId>service-consumer-demo</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>service-consumer-demo</name>
- <description>service-consumer-demo</description>
- <properties>
- <java.version>17</java.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-loadbalancer</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-openfeign</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
- </dependency>
- <!-- 引入其他的http包 来代替原生的http -->
- <!-- <dependency>-->
- <!-- <groupId>org.apache.httpcomponents.client5</groupId>-->
- <!-- <artifactId>httpclient5</artifactId>-->
- <!-- <version>5.3</version>-->
- <!-- </dependency>-->
- <!-- feign-hc5-->
- <dependency>
- <groupId>io.github.openfeign</groupId>
- <artifactId>feign-hc5</artifactId>
- <!-- <version>13.1</version>-->
- </dependency>
- <dependency>
- <groupId>io.github.openfeign</groupId>
- <artifactId>feign-okhttp</artifactId>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <!-- <version>1.18.34</version>-->
- </dependency>
- <dependency>
- <groupId>com.sf</groupId>
- <artifactId>openfeign-service-api</artifactId>
- <!-- <version>0.0.1-SNAPSHOT</version>-->
- <!-- 使用变量 项目版本号 来代替写死版本号 -->
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </project>
|