Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
3402b695
Commit
3402b695
authored
Feb 21, 2023
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除apache/commons-fileupload依赖
parent
2c5e3e42
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
15 deletions
+61
-15
pom.xml
pom.xml
+0
-8
pom.xml
ruoyi-common/pom.xml
+0
-6
FileUploadException.java
.../com/ruoyi/common/exception/file/FileUploadException.java
+61
-0
InvalidExtensionException.java
...uoyi/common/exception/file/InvalidExtensionException.java
+0
-1
No files found.
pom.xml
View file @
3402b695
...
...
@@ -26,7 +26,6 @@
<fastjson.version>
2.0.23
</fastjson.version>
<oshi.version>
6.4.0
</oshi.version>
<commons.io.version>
2.11.0
</commons.io.version>
<commons.fileupload.version>
1.4
</commons.fileupload.version>
<commons.collections.version>
3.2.2
</commons.collections.version>
<poi.version>
4.1.2
</poi.version>
<velocity.version>
2.3
</velocity.version>
...
...
@@ -94,13 +93,6 @@
<version>
${commons.io.version}
</version>
</dependency>
<!-- 文件上传工具类 -->
<dependency>
<groupId>
commons-fileupload
</groupId>
<artifactId>
commons-fileupload
</artifactId>
<version>
${commons.fileupload.version}
</version>
</dependency>
<!-- excel工具 -->
<dependency>
<groupId>
org.apache.poi
</groupId>
...
...
ruoyi-common/pom.xml
View file @
3402b695
...
...
@@ -78,12 +78,6 @@
<artifactId>
commons-io
</artifactId>
</dependency>
<!-- 文件上传工具类 -->
<dependency>
<groupId>
commons-fileupload
</groupId>
<artifactId>
commons-fileupload
</artifactId>
</dependency>
<!-- excel工具 -->
<dependency>
<groupId>
org.apache.poi
</groupId>
...
...
ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileUploadException.java
0 → 100644
View file @
3402b695
package
com
.
ruoyi
.
common
.
exception
.
file
;
import
java.io.PrintStream
;
import
java.io.PrintWriter
;
/**
* 文件上传异常类
*
* @author ruoyi
*/
public
class
FileUploadException
extends
Exception
{
private
static
final
long
serialVersionUID
=
1L
;
private
final
Throwable
cause
;
public
FileUploadException
()
{
this
(
null
,
null
);
}
public
FileUploadException
(
final
String
msg
)
{
this
(
msg
,
null
);
}
public
FileUploadException
(
String
msg
,
Throwable
cause
)
{
super
(
msg
);
this
.
cause
=
cause
;
}
@Override
public
void
printStackTrace
(
PrintStream
stream
)
{
super
.
printStackTrace
(
stream
);
if
(
cause
!=
null
)
{
stream
.
println
(
"Caused by:"
);
cause
.
printStackTrace
(
stream
);
}
}
@Override
public
void
printStackTrace
(
PrintWriter
writer
)
{
super
.
printStackTrace
(
writer
);
if
(
cause
!=
null
)
{
writer
.
println
(
"Caused by:"
);
cause
.
printStackTrace
(
writer
);
}
}
@Override
public
Throwable
getCause
()
{
return
cause
;
}
}
ruoyi-common/src/main/java/com/ruoyi/common/exception/file/InvalidExtensionException.java
View file @
3402b695
package
com
.
ruoyi
.
common
.
exception
.
file
;
import
java.util.Arrays
;
import
org.apache.commons.fileupload.FileUploadException
;
/**
* 文件上传 误异常类
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment