Browse Source

解决阿里云安全检查问题

lixing 3 years ago
parent
commit
4c1ef968d2
1 changed files with 14 additions and 15 deletions
  1. 14 15
      pom.xml

+ 14 - 15
pom.xml

@@ -29,7 +29,14 @@
 		<dependency>
 			<groupId>org.springframework.boot</groupId>
 			<artifactId>spring-boot-starter-web</artifactId>
+			<exclusions>
+				<exclusion>
+					<artifactId>spring-web</artifactId>
+					<groupId>org.springframework</groupId>
+				</exclusion>
+			</exclusions>
 		</dependency>
+
 		<!-- swagger -->
 		<dependency>
 			<groupId>com.github.xiaoymin</groupId>
@@ -73,21 +80,6 @@
 				</exclusion>
 			</exclusions>
 		</dependency>
-		<!--WebSocket核心依赖包 -->
-		<dependency>
-			<groupId>org.springframework.boot</groupId>
-			<artifactId>spring-boot-starter-websocket</artifactId>
-		</dependency>
-		<!--WebSocket核心依赖包 -->
-		<dependency>
-			<groupId>org.java-websocket</groupId>
-			<artifactId>Java-WebSocket</artifactId>
-			<version>1.3.8</version>
-		</dependency>
-		<!-- <dependency> -->
-		<!-- <groupId>junit</groupId> -->
-		<!-- <artifactId>junit</artifactId> -->
-		<!-- </dependency> -->
 		<!-- commons-lang3常用工具类 -->
 		<dependency>
 			<groupId>org.apache.commons</groupId>
@@ -168,6 +160,13 @@
 				</exclusion>
 			</exclusions>
 		</dependency>
+
+		<!-- 解决阿里云监测漏洞,升级以下jar包版本 -->
+		<dependency>
+			<artifactId>spring-web</artifactId>
+			<groupId>org.springframework</groupId>
+			<version>5.2.3.RELEASE</version>
+		</dependency>
 	</dependencies>
 
 	<build>