79df30d0f8
2. 升级 spring cloud 2021.0.5 3. 升级 spring cloud alibaba 2021.0.4.0 4. 解决新版本 Srping Cloud Gateway 重复 cors 导致报错 5. 调整 spring boot 自动配置的写法 6. 调整 spring security 配置的写法
107 lines
3.6 KiB
XML
107 lines
3.6 KiB
XML
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>yudao</artifactId>
|
|
<groupId>cn.iocoder.cloud</groupId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>yudao-gateway</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>${project.artifactId}</name>
|
|
<description>API 服务网关,基于 Spring Cloud Gateway 实现</description>
|
|
<url>https://github.com/YunaiV/yudao-cloud</url>
|
|
|
|
<dependencies>
|
|
<!-- Spring Cloud 基础 -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 业务组件 -->
|
|
<dependency>
|
|
<groupId>cn.iocoder.cloud</groupId>
|
|
<artifactId>yudao-spring-boot-starter-banner</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.iocoder.cloud</groupId>
|
|
<artifactId>yudao-module-system-api</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
|
|
<!-- Gateway 网关相关 -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-gateway</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>knife4j-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
</dependency>
|
|
|
|
<!-- RPC 远程调用相关 -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Registry 注册中心相关 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Config 配置中心相关 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 监控相关 -->
|
|
<dependency>
|
|
<groupId>cn.iocoder.cloud</groupId>
|
|
<artifactId>yudao-spring-boot-starter-monitor</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
<!-- 设置构建的 jar 包名 -->
|
|
<finalName>${project.artifactId}</finalName>
|
|
<plugins>
|
|
<!-- 打包 -->
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>2.7.6</version> <!-- 如果 spring.boot.version 版本修改,则这里也要跟着修改 -->
|
|
<configuration>
|
|
<fork>true</fork>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|