Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
795d8edc
Commit
795d8edc
authored
Dec 13, 2023
by
LiuLin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jyjc):回复丢失代码
parent
edce4918
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletion
+41
-1
ExtendedIOUtils.java
...join/amos/boot/module/ymt/api/common/ExtendedIOUtils.java
+40
-0
HttpUtils.java
...om/yeejoin/amos/boot/module/ymt/api/common/HttpUtils.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-common/src/main/java/com/yeejoin/amos/boot/module/ymt/api/common/ExtendedIOUtils.java
0 → 100644
View file @
795d8edc
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
api
.
common
;
import
org.springframework.util.Assert
;
import
java.io.Closeable
;
import
java.io.Flushable
;
import
java.io.IOException
;
/**
* IO流拓展工具类,补充IOUtils新版本中废弃的closeQuietly
*
* @author King
* @since 2018/12/27 17:56
*/
public
class
ExtendedIOUtils
{
public
static
void
flush
(
Flushable
...
resources
)
throws
IOException
{
Assert
.
noNullElements
(
resources
,
"resources invalid"
);
int
length
=
resources
.
length
;
for
(
int
i
=
0
;
i
<
length
;
++
i
)
{
Flushable
resource
=
resources
[
i
];
if
(
resource
!=
null
)
{
resource
.
flush
();
}
}
}
public
static
void
closeQuietly
(
Closeable
...
resources
)
{
int
length
=
resources
.
length
;
for
(
int
i
=
0
;
i
<
length
;
++
i
)
{
Closeable
resource
=
resources
[
i
];
if
(
resource
!=
null
)
{
try
{
resource
.
close
();
}
catch
(
IOException
e
)
{
//ignore exception
}
}
}
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-common/src/main/java/com/yeejoin/amos/boot/module/ymt/api/common/HttpUtils.java
View file @
795d8edc
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
api
.
common
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
api
.
common
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.utils.GlobalCache
;
import
com.yeejoin.amos.boot.module.ymt.api.vo.ResponeVo
;
import
com.yeejoin.amos.boot.module.ymt.api.vo.ResponeVo
;
import
org.apache.http.HttpEntity
;
import
org.apache.http.HttpEntity
;
import
org.apache.http.NameValuePair
;
import
org.apache.http.NameValuePair
;
import
org.apache.http.client.config.RequestConfig
;
import
org.apache.http.client.config.RequestConfig
;
...
...
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