Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
architecture
/
glsx-archetype
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 71b12dcf
authored
Apr 18, 2023
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
框架完善
1 parent
58aabe56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
rest-archetype-framework/rest-admin-feign/src/main/java/com/glsx/plat/feign/utils/RestTemplateKit.java
rest-archetype-framework/rest-admin-feign/src/main/java/com/glsx/plat/feign/utils/RestTemplateUtils.java
rest-archetype-framework/rest-admin-feign/src/main/java/com/glsx/plat/feign/utils/RestTemplateKit.java
View file @
71b12dc
...
@@ -24,7 +24,7 @@ import javax.net.ssl.SSLContext;
...
@@ -24,7 +24,7 @@ import javax.net.ssl.SSLContext;
public
enum
RestTemplateKit
{
public
enum
RestTemplateKit
{
SCOPE
(
8000
,
8
000
,
512
,
32
);
SCOPE
(
20000
,
20
000
,
512
,
32
);
private
final
int
READ_TIMEOUT
;
private
final
int
READ_TIMEOUT
;
private
final
int
CONNECT_TIMEOUT
;
private
final
int
CONNECT_TIMEOUT
;
...
...
rest-archetype-framework/rest-admin-feign/src/main/java/com/glsx/plat/feign/utils/RestTemplateUtils.java
View file @
71b12dc
...
@@ -14,8 +14,8 @@ import java.util.Objects;
...
@@ -14,8 +14,8 @@ import java.util.Objects;
public
class
RestTemplateUtils
{
public
class
RestTemplateUtils
{
private
static
final
int
CONNECT_TIMEOUT
=
8
000
;
private
static
final
int
CONNECT_TIMEOUT
=
20
000
;
private
static
final
int
SOCKET_TIMEOUT
=
8
000
;
private
static
final
int
SOCKET_TIMEOUT
=
20
000
;
private
static
RestTemplate
getCustomRestTemplate
()
{
private
static
RestTemplate
getCustomRestTemplate
()
{
SimpleClientHttpRequestFactory
factory
=
new
SimpleClientHttpRequestFactory
();
SimpleClientHttpRequestFactory
factory
=
new
SimpleClientHttpRequestFactory
();
...
...
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