Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
b04e2710
Commit
b04e2710
authored
Apr 12, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
85a44ed0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
FileUploadController.java
.../chnmuseum/party/web/controller/FileUploadController.java
+2
-0
application.properties
src/main/resources/application.properties
+2
-2
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/FileUploadController.java
View file @
b04e2710
...
@@ -22,6 +22,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -22,6 +22,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.io.FilenameUtils
;
import
org.apache.commons.io.FilenameUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.shiro.authz.annotation.RequiresAuthentication
;
import
org.apache.shiro.authz.annotation.RequiresAuthentication
;
import
org.springframework.context.annotation.Scope
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
...
@@ -43,6 +44,7 @@ import java.util.*;
...
@@ -43,6 +44,7 @@ import java.util.*;
@RestController
@RestController
@RequestMapping
(
"/file"
)
@RequestMapping
(
"/file"
)
@Api
(
tags
=
{
"文件上传接口"
})
@Api
(
tags
=
{
"文件上传接口"
})
@Scope
(
"prototype"
)
public
class
FileUploadController
extends
BaseController
{
public
class
FileUploadController
extends
BaseController
{
private
static
final
String
[]
IMAGE_TYPE
=
new
String
[]{
"JPG"
,
"JPEG"
,
"PNG"
,
"BMP"
,
"WBMP"
};
private
static
final
String
[]
IMAGE_TYPE
=
new
String
[]{
"JPG"
,
"JPEG"
,
"PNG"
,
"BMP"
,
"WBMP"
};
...
...
src/main/resources/application.properties
View file @
b04e2710
...
@@ -27,8 +27,8 @@ mybatis-plus.configuration.log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
...
@@ -27,8 +27,8 @@ mybatis-plus.configuration.log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
########################################################
########################################################
###FastDFS
###FastDFS
########################################################
########################################################
fdfs.so-timeout
=
1501
fdfs.so-timeout
=
3000
fdfs.connect-timeout
=
601
fdfs.connect-timeout
=
1000
fdfs.thumb-image.width
=
150
fdfs.thumb-image.width
=
150
fdfs.thumb-image.height
=
150
fdfs.thumb-image.height
=
150
fdfs.tracker-list[0]=
192.168.110.85
:
22122
fdfs.tracker-list[0]=
192.168.110.85
:
22122
...
...
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