Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
3927e8d1
Commit
3927e8d1
authored
Jan 10, 2025
by
xuepeng.chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调用极光接口 添加 超时时间
parent
cbb1d93f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
JiGuangConfiguration.java
...n/quantgroup/xyqb/remote/config/JiGuangConfiguration.java
+6
-0
No files found.
src/main/java/cn/quantgroup/xyqb/remote/config/JiGuangConfiguration.java
View file @
3927e8d1
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.remote.config;
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.remote.config;
import
cn.quantgroup.xyqb.remote.codec.JiGuangDecoder
;
import
cn.quantgroup.xyqb.remote.codec.JiGuangDecoder
;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
feign.Request
;
import
feign.auth.BasicAuthRequestInterceptor
;
import
feign.auth.BasicAuthRequestInterceptor
;
import
feign.codec.Decoder
;
import
feign.codec.Decoder
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -9,6 +10,11 @@ import org.springframework.context.annotation.Bean;
...
@@ -9,6 +10,11 @@ import org.springframework.context.annotation.Bean;
public
class
JiGuangConfiguration
{
public
class
JiGuangConfiguration
{
@Bean
Request
.
Options
feignOptions
()
{
return
new
Request
.
Options
(
3000
,
3000
);
}
@Bean
@Bean
public
Decoder
feignDecoder
(
Gson
gson
,
@Value
(
"${user.auth.manager.Urora.properties.privateKey}"
)
String
privateKey
)
{
public
Decoder
feignDecoder
(
Gson
gson
,
@Value
(
"${user.auth.manager.Urora.properties.privateKey}"
)
String
privateKey
)
{
return
new
JiGuangDecoder
(
gson
,
privateKey
);
return
new
JiGuangDecoder
(
gson
,
privateKey
);
...
...
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