增加了配置文件,设置了ribbon的超时时长
This commit is contained in:
@ -3,10 +3,12 @@ package com.chinaunicom.ebtp.mall.cloud.attachment.sdk.config;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
|
||||
@Configuration
|
||||
@EnableFeignClients(basePackages = "com.chinaunicom.ebtp.mall.cloud.attachment.sdk")
|
||||
@ComponentScan(basePackages = "com.chinaunicom.ebtp.mall.cloud.attachment.sdk")
|
||||
@PropertySource("classpath:attachment-sdk-cofiguration.properties")
|
||||
public class SDKAutoConfiguration {
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,2 @@
|
||||
ribbon.ReadTimeout=1800000
|
||||
ribbon.SocketTimeout=1800000
|
Reference in New Issue
Block a user