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 | 59 | <commons-net.version>3.9.0</commons-net.version> |
| 60 | 60 | <jsch.version>0.1.55</jsch.version> |
| 61 | 61 | <tika-core.version>2.7.0</tika-core.version> |
| 62 | - <netty-all.version>4.1.90.Final</netty-all.version> | |
| 63 | 62 | <ip2region.version>2.7.0</ip2region.version> |
| 64 | 63 | <!-- 三方云服务相关 --> |
| 65 | 64 | <okio.version>3.0.0</okio.version> |
| ... | ... | @@ -343,6 +342,12 @@ |
| 343 | 342 | <groupId>de.codecentric</groupId> |
| 344 | 343 | <artifactId>spring-boot-admin-starter-server</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 --> |
| 345 | 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 | 351 | </dependency> |
| 347 | 352 | <dependency> |
| 348 | 353 | <groupId>de.codecentric</groupId> |
| ... | ... | @@ -526,12 +531,6 @@ |
| 526 | 531 | </dependency> |
| 527 | 532 | |
| 528 | 533 | <dependency> |
| 529 | - <groupId>io.netty</groupId> | |
| 530 | - <artifactId>netty-all</artifactId> | |
| 531 | - <version>${netty-all.version}</version> | |
| 532 | - </dependency> | |
| 533 | - | |
| 534 | - <dependency> | |
| 535 | 534 | <groupId>com.xingyuv</groupId> |
| 536 | 535 | <artifactId>spring-boot-starter-captcha-plus</artifactId> |
| 537 | 536 | <version>${captcha-plus.version}</version> | ... | ... |
yudao-framework/yudao-spring-boot-starter-redis/pom.xml
| ... | ... | @@ -33,12 +33,6 @@ |
| 33 | 33 | </dependency> |
| 34 | 34 | |
| 35 | 35 | <dependency> |
| 36 | - <groupId>io.netty</groupId> | |
| 37 | - <artifactId>netty-all</artifactId> | |
| 38 | - </dependency> | |
| 39 | - | |
| 40 | - | |
| 41 | - <dependency> | |
| 42 | 36 | <groupId>com.fasterxml.jackson.datatype</groupId> |
| 43 | 37 | <artifactId>jackson-datatype-jsr310</artifactId> |
| 44 | 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 | 21 | |
| 22 | 22 | @AutoConfiguration |
| 23 | 23 | @EnableConfigurationProperties(XssProperties.class) |
| 24 | +@ConditionalOnProperty(prefix = "yudao.xss", name = "enable", havingValue = "true", matchIfMissing = true) // 设置为 false 时,禁用 | |
| 24 | 25 | public class YudaoXssAutoConfiguration implements WebMvcConfigurer { |
| 25 | 26 | |
| 26 | 27 | /** | ... | ... |