@Configuration @EnableConfigurationProperties(value=RetrofitProperties.class) @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration.class) public class RetrofitAutoConfiguration extends Object implements org.springframework.context.ApplicationContextAware
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RetrofitAutoConfiguration.RetrofitProcessorAutoConfiguration |
static class |
RetrofitAutoConfiguration.RetrofitScannerRegistrarNotFoundConfiguration |
| 限定符和类型 | 字段和说明 |
|---|---|
private org.springframework.context.ApplicationContext |
applicationContext |
private static org.slf4j.Logger |
logger |
private RetrofitProperties |
retrofitProperties |
| 构造器和说明 |
|---|
RetrofitAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
GlobalAndNetworkInterceptorFinder |
globalAndNetworkInterceptorFinder() |
retrofit2.converter.jackson.JacksonConverterFactory |
jacksonConverterFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
com.fasterxml.jackson.databind.ObjectMapper |
jacksonObjectMapper() |
RetrofitConfigBean |
retrofitConfigBean() |
RetrofitDegradeRuleInitializer |
retrofitDegradeRuleInitializer() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
private static final org.slf4j.Logger logger
@Autowired private RetrofitProperties retrofitProperties
private org.springframework.context.ApplicationContext applicationContext
@Bean public GlobalAndNetworkInterceptorFinder globalAndNetworkInterceptorFinder()
@Bean @ConditionalOnMissingBean public RetrofitConfigBean retrofitConfigBean() throws IllegalAccessException, InstantiationException
@Bean @ConditionalOnMissingBean public com.fasterxml.jackson.databind.ObjectMapper jacksonObjectMapper()
@Bean @ConditionalOnMissingBean @Autowired public retrofit2.converter.jackson.JacksonConverterFactory jacksonConverterFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException@Bean public RetrofitDegradeRuleInitializer retrofitDegradeRuleInitializer()
Copyright © 2022. All rights reserved.