Browse Source

依赖包的安全升级

wkeyuan 3 năm trước cách đây
mục cha
commit
ecde9e2d2c
2 tập tin đã thay đổi với 6 bổ sung12 xóa
  1. 5 11
      pom.xml
  2. 1 1
      src/main/java/net/diaowen/common/dao/SuperHttpDao.java

+ 5 - 11
pom.xml

@@ -113,7 +113,7 @@
         <dependency>
             <groupId>com.alibaba</groupId>
             <artifactId>fastjson</artifactId>
-            <version>1.2.66</version>
+            <version>1.2.79</version>
         </dependency>
 
 
@@ -144,12 +144,6 @@
             <version>2.2.2</version>
         </dependency>
 
-        <dependency>
-            <groupId>commons-httpclient</groupId>
-            <artifactId>commons-httpclient</artifactId>
-            <version>3.0.1</version>
-        </dependency>
-
         <dependency>
             <groupId>org.apache.httpcomponents</groupId>
             <artifactId>httpcore</artifactId>
@@ -159,7 +153,7 @@
         <dependency>
             <groupId>org.apache.httpcomponents</groupId>
             <artifactId>httpclient</artifactId>
-            <version>4.5.2</version>
+            <version>4.5.13</version>
         </dependency>
 
         <dependency>
@@ -223,7 +217,7 @@
         <dependency>
             <groupId>org.jsoup</groupId>
             <artifactId>jsoup</artifactId>
-            <version>1.7.2</version>
+            <version>1.14.2</version>
         </dependency>
 
         <dependency>
@@ -321,13 +315,13 @@
         <dependency>
             <groupId>commons-io</groupId>
             <artifactId>commons-io</artifactId>
-            <version>2.4</version>
+            <version>2.7</version>
         </dependency>
         <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
         <dependency>
             <groupId>commons-fileupload</groupId>
             <artifactId>commons-fileupload</artifactId>
-            <version>1.3.1</version>
+            <version>1.3.3</version>
         </dependency>
 
         <!-- https://mvnrepository.com/artifact/eu.bitwalker/UserAgentUtils -->

+ 1 - 1
src/main/java/net/diaowen/common/dao/SuperHttpDao.java

@@ -1,7 +1,7 @@
 package net.diaowen.common.dao;
 
-import org.apache.commons.httpclient.HttpStatus;
 import org.apache.http.Header;
+import org.apache.http.HttpStatus;
 import org.apache.http.StatusLine;
 import org.apache.http.client.ClientProtocolException;
 import org.apache.http.client.config.RequestConfig;