Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
王仕雄
/
wangsx-test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd566a0b
authored
Nov 27, 2019
by
王仕雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件压缩
1 parent
201c40d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
khdo/pom.xml
khdo/src/main/java/com/bootdo/common/ABcv.java
khdo/pom.xml
View file @
cd566a0
...
@@ -159,6 +159,21 @@
...
@@ -159,6 +159,21 @@
<dependency>
<dependency>
<groupId>
com.asprise.ocr
</groupId>
<artifactId>
java-ocr-api
</artifactId>
<version>
15.3.0.3
</version>
</dependency>
<dependency>
<groupId>
commons-httpclient
</groupId>
<artifactId>
commons-httpclient
</artifactId>
<version>
3.1
</version>
</dependency>
<dependency>
<groupId>
org.quartz-scheduler
</groupId>
<groupId>
org.quartz-scheduler
</groupId>
<artifactId>
quartz
</artifactId>
<artifactId>
quartz
</artifactId>
<version>
2.2.1
</version>
<version>
2.2.1
</version>
...
@@ -224,6 +239,13 @@
...
@@ -224,6 +239,13 @@
<artifactId>
spring-boot-starter-data-redis
</artifactId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
</dependency>
<!-- hutool工具大全 -->
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
<version>
4.6.2
</version>
</dependency>
<dependency>
<dependency>
<groupId>
redis.clients
</groupId>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
<artifactId>
jedis
</artifactId>
...
...
khdo/src/main/java/com/bootdo/common/ABcv.java
0 → 100644
View file @
cd566a0
package
com
.
bootdo
.
common
;
import
java.io.File
;
import
java.io.InputStream
;
import
java.net.URL
;
import
cn.hutool.core.io.FileUtil
;
import
cn.hutool.core.util.ZipUtil
;
public
class
ABcv
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
String
url11
=
"https://cdn1.yxvzb.com/saas_app_tmp/1567244171282.jpg"
;
String
url22
=
"https://cdn1.yxvzb.com/saas_app_tmp/1567231942667.jpg"
;
String
[]
fileNames
=
new
String
[
2
];
fileNames
[
0
]
=
url11
.
substring
(
url11
.
lastIndexOf
(
"/"
)+
1
,
url11
.
length
());
fileNames
[
1
]
=
url22
.
substring
(
url11
.
lastIndexOf
(
"/"
)+
1
,
url11
.
length
());
InputStream
[]
ins
=
new
InputStream
[
2
];
ins
[
0
]=
new
URL
(
url11
).
openStream
();
ins
[
1
]=
new
URL
(
url22
).
openStream
();
String
tempDir
=
"D:\\1991.zip"
;
ZipUtil
.
zip
(
new
File
(
tempDir
),
fileNames
,
ins
);
System
.
out
.
println
(
99
);
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment