浏览代码

cos upgrade to 2020.4

James 5 年之前
父节点
当前提交
555ac0d007
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 1 1
      pom.xml
  2. 6 2
      src/main/java/com/jfinal/upload/ExceededSizeException.java

+ 1 - 1
pom.xml

@@ -172,7 +172,7 @@
 		<dependency>
 		<dependency>
 			<groupId>com.jfinal</groupId>
 			<groupId>com.jfinal</groupId>
 			<artifactId>cos</artifactId>
 			<artifactId>cos</artifactId>
-			<version>2019.8</version>
+			<version>2020.4</version>
 			<scope>provided</scope>
 			<scope>provided</scope>
 		</dependency>
 		</dependency>
 		
 		

+ 6 - 2
src/main/java/com/jfinal/upload/ExceededSizeException.java

@@ -6,13 +6,17 @@ package com.jfinal.upload;
  * com.oreilly.servlet.multipart.MultipartParser 中会抛出以下异常
  * com.oreilly.servlet.multipart.MultipartParser 中会抛出以下异常
  * throw new ExceededSizeException("Posted content length of " + length + " exceeds limit of " + maxSize);
  * throw new ExceededSizeException("Posted content length of " + length + " exceeds limit of " + maxSize);
  */
  */
-public class ExceededSizeException extends RuntimeException {
+public class ExceededSizeException extends com.oreilly.servlet.multipart.ExceededSizeException {
 	
 	
 	private static final long serialVersionUID = -3493615798872340918L;
 	private static final long serialVersionUID = -3493615798872340918L;
 	
 	
-	ExceededSizeException(Throwable t) {
+	public ExceededSizeException(Throwable t) {
 		super(t);
 		super(t);
 	}
 	}
+	
+	public ExceededSizeException(String s) {
+		super(s);
+	}
 }
 }