Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
8cf2afa1
Commit
8cf2afa1
authored
Nov 03, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异步上传
parent
a161fa0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/main/java/cn/timer/api/service/impl/FtpServiceImpl.java
+2
-0
No files found.
src/main/java/cn/timer/api/service/impl/FtpServiceImpl.java
View file @
8cf2afa1
...
...
@@ -8,6 +8,7 @@ import com.jcraft.jsch.ChannelSftp;
import
com.jcraft.jsch.SftpException
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
@@ -60,6 +61,7 @@ public class FtpServiceImpl implements FtpService {
return
false
;
}
@Async
(
"threadPoolTaskExecutor"
)
@Override
public
List
<
FileInfoDto
>
uploadFile
(
String
targetPath
,
MultipartFile
[]
files
,
boolean
reservedName
)
{
ChannelSftp
sftp
=
config
.
getSftpSocket
();
...
...
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