@ConfigurationProperties(prefix="retrofit") public class RetrofitProperties extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
autoSetPrototypeScopeForPathMathInterceptor
自动设置PathMathInterceptor的scope为prototype
|
private DegradeProperty |
degrade
熔断降级配置
degrade config
|
private Class<? extends retrofit2.CallAdapter.Factory>[] |
globalCallAdapterFactories
全局调用适配器工厂,适配器实例优先从Spring容器获取,如果没有获取到,则反射创建。
|
private Class<? extends retrofit2.Converter.Factory>[] |
globalConverterFactories
全局转换器工厂,转换器实例优先从Spring容器获取,如果没有获取到,则反射创建。
|
private GlobalLogProperty |
globalLog
全局日志配置
log config
|
private GlobalRetryProperty |
globalRetry
全局重试配置
retry config
|
private GlobalTimeoutProperty |
globalTimeout
全局超时配置
|
| 构造器和说明 |
|---|
RetrofitProperties() |
private boolean autoSetPrototypeScopeForPathMathInterceptor
@NestedConfigurationProperty private GlobalRetryProperty globalRetry
retry config
@NestedConfigurationProperty private DegradeProperty degrade
degrade config
@NestedConfigurationProperty private GlobalLogProperty globalLog
log config
@NestedConfigurationProperty private GlobalTimeoutProperty globalTimeout
private Class<? extends retrofit2.Converter.Factory>[] globalConverterFactories
global converter factories, The converter instance is first obtained from the Spring container. If it is not obtained, it is created by reflection.
private Class<? extends retrofit2.CallAdapter.Factory>[] globalCallAdapterFactories
global call adapter factories, The callAdapter instance is first obtained from the Spring container. If it is not obtained, it is created by reflection.
Copyright © 2024. All rights reserved.