小区汇总数据接口修改
This commit is contained in:
+2
-1
@@ -5,6 +5,7 @@ import com.fangjia.job.common.core.JacksonEncoder;
|
||||
|
||||
import feign.Feign;
|
||||
import feign.Logger;
|
||||
import feign.Request.Options;
|
||||
|
||||
/**
|
||||
* Rest API 调用工具类<br>
|
||||
@@ -21,7 +22,7 @@ public class RestApiCallUtils {
|
||||
* @return
|
||||
*/
|
||||
public static <T> T getRestClient(Class<T> apiType, String url) {
|
||||
return Feign.builder().encoder(new JacksonEncoder()).decoder(new JacksonDecoder())
|
||||
return Feign.builder().encoder(new JacksonEncoder()).decoder(new JacksonDecoder()).options(new Options(10 * 1000, 100 * 1000))
|
||||
.logLevel(Logger.Level.FULL)
|
||||
.target(apiType, url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user