Commit 436fef7efaaee88b3874c72c36f7488fac729dff
1 parent
222daa53
1. 移除 netty-all,减少依赖
2. 修复 xss 无法禁用的问题
Showing
3 changed files
with
7 additions
and
13 deletions
yudao-dependencies/pom.xml
| @@ -59,7 +59,6 @@ | @@ -59,7 +59,6 @@ | ||
| 59 | <commons-net.version>3.9.0</commons-net.version> | 59 | <commons-net.version>3.9.0</commons-net.version> |
| 60 | <jsch.version>0.1.55</jsch.version> | 60 | <jsch.version>0.1.55</jsch.version> |
| 61 | <tika-core.version>2.7.0</tika-core.version> | 61 | <tika-core.version>2.7.0</tika-core.version> |
| 62 | - <netty-all.version>4.1.90.Final</netty-all.version> | ||
| 63 | <ip2region.version>2.7.0</ip2region.version> | 62 | <ip2region.version>2.7.0</ip2region.version> |
| 64 | <!-- 三方云服务相关 --> | 63 | <!-- 三方云服务相关 --> |
| 65 | <okio.version>3.0.0</okio.version> | 64 | <okio.version>3.0.0</okio.version> |
| @@ -343,6 +342,12 @@ | @@ -343,6 +342,12 @@ | ||
| 343 | <groupId>de.codecentric</groupId> | 342 | <groupId>de.codecentric</groupId> |
| 344 | <artifactId>spring-boot-admin-starter-server</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 --> | 343 | <artifactId>spring-boot-admin-starter-server</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 --> |
| 345 | <version>${spring-boot-admin.version}</version> | 344 | <version>${spring-boot-admin.version}</version> |
| 345 | + <exclusions> | ||
| 346 | + <exclusion> | ||
| 347 | + <groupId>de.codecentric</groupId> | ||
| 348 | + <artifactId>spring-boot-admin-server-cloud</artifactId> | ||
| 349 | + </exclusion> | ||
| 350 | + </exclusions> | ||
| 346 | </dependency> | 351 | </dependency> |
| 347 | <dependency> | 352 | <dependency> |
| 348 | <groupId>de.codecentric</groupId> | 353 | <groupId>de.codecentric</groupId> |
| @@ -526,12 +531,6 @@ | @@ -526,12 +531,6 @@ | ||
| 526 | </dependency> | 531 | </dependency> |
| 527 | 532 | ||
| 528 | <dependency> | 533 | <dependency> |
| 529 | - <groupId>io.netty</groupId> | ||
| 530 | - <artifactId>netty-all</artifactId> | ||
| 531 | - <version>${netty-all.version}</version> | ||
| 532 | - </dependency> | ||
| 533 | - | ||
| 534 | - <dependency> | ||
| 535 | <groupId>com.xingyuv</groupId> | 534 | <groupId>com.xingyuv</groupId> |
| 536 | <artifactId>spring-boot-starter-captcha-plus</artifactId> | 535 | <artifactId>spring-boot-starter-captcha-plus</artifactId> |
| 537 | <version>${captcha-plus.version}</version> | 536 | <version>${captcha-plus.version}</version> |
yudao-framework/yudao-spring-boot-starter-redis/pom.xml
| @@ -33,12 +33,6 @@ | @@ -33,12 +33,6 @@ | ||
| 33 | </dependency> | 33 | </dependency> |
| 34 | 34 | ||
| 35 | <dependency> | 35 | <dependency> |
| 36 | - <groupId>io.netty</groupId> | ||
| 37 | - <artifactId>netty-all</artifactId> | ||
| 38 | - </dependency> | ||
| 39 | - | ||
| 40 | - | ||
| 41 | - <dependency> | ||
| 42 | <groupId>com.fasterxml.jackson.datatype</groupId> | 36 | <groupId>com.fasterxml.jackson.datatype</groupId> |
| 43 | <artifactId>jackson-datatype-jsr310</artifactId> | 37 | <artifactId>jackson-datatype-jsr310</artifactId> |
| 44 | </dependency> | 38 | </dependency> |
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/xss/config/YudaoXssAutoConfiguration.java
| @@ -21,6 +21,7 @@ import static cn.iocoder.yudao.framework.web.config.YudaoWebAutoConfiguration.cr | @@ -21,6 +21,7 @@ import static cn.iocoder.yudao.framework.web.config.YudaoWebAutoConfiguration.cr | ||
| 21 | 21 | ||
| 22 | @AutoConfiguration | 22 | @AutoConfiguration |
| 23 | @EnableConfigurationProperties(XssProperties.class) | 23 | @EnableConfigurationProperties(XssProperties.class) |
| 24 | +@ConditionalOnProperty(prefix = "yudao.xss", name = "enable", havingValue = "true", matchIfMissing = true) // 设置为 false 时,禁用 | ||
| 24 | public class YudaoXssAutoConfiguration implements WebMvcConfigurer { | 25 | public class YudaoXssAutoConfiguration implements WebMvcConfigurer { |
| 25 | 26 | ||
| 26 | /** | 27 | /** |