Commit 3927e8d1 authored by xuepeng.chang's avatar xuepeng.chang

调用极光接口 添加 超时时间

parent cbb1d93f
......@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.remote.config;
import cn.quantgroup.xyqb.remote.codec.JiGuangDecoder;
import com.google.gson.Gson;
import feign.Request;
import feign.auth.BasicAuthRequestInterceptor;
import feign.codec.Decoder;
import org.springframework.beans.factory.annotation.Value;
......@@ -9,6 +10,11 @@ import org.springframework.context.annotation.Bean;
public class JiGuangConfiguration {
@Bean
Request.Options feignOptions() {
return new Request.Options(3000, 3000);
}
@Bean
public Decoder feignDecoder(Gson gson,@Value("${user.auth.manager.Urora.properties.privateKey}") String privateKey) {
return new JiGuangDecoder(gson,privateKey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment