@Configuration @Import(value=com.fhs.trans.advice.EasyTransResponseBodyAdvice.class) public class TransServiceConfig extends java.lang.Object implements org.springframework.beans.factory.InitializingBean
| 构造器和说明 |
|---|
TransServiceConfig() |
@Bean public TransService transService()
@Bean @DependsOn(value="springContextUtil") public AutoTransService autoTransService()
@Bean public DictionaryTransService dictionaryTransService(SimpleTransService simpleTransService)
@Bean public ReleaseTransCacheAdvice releaseTransCacheAdvice()
@Bean public EnumTransService enumTransService()
@Bean @Primary @ConditionalOnBean(value=com.fhs.trans.service.impl.SimpleTransService.SimpleTransDiver.class) public SimpleTransService simpleTransService(SimpleTransService.SimpleTransDiver dirver, RpcTransService rpcTransService)
@Bean @LoadBalanced @ConditionalOnMissingBean(value=org.springframework.web.client.RestTemplate.class) public org.springframework.web.client.RestTemplate restTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder)
@Bean public TransCacheManager transCacheManager()
@Bean public BothCacheService bothCacheService()
@Bean @ConditionalOnBean(value=com.fhs.trans.service.impl.SimpleTransService.SimpleTransDiver.class) public RpcTransService rpcTransService(SimpleTransService.SimpleTransDiver dirver, org.springframework.web.client.RestTemplate restTemplate)
@Bean @ConditionalOnBean(value=com.fhs.trans.service.impl.SimpleTransService.SimpleTransDiver.class) public TransProxyController transProxyController(SimpleTransService.SimpleTransDiver dirver)
@Bean public TransMethodResultAop transMethodResultAop()
@Bean
@ConditionalOnProperty(name="easy-trans.is-enable-redis",
havingValue="true")
public TransMessageListener transMessageListener()
@Bean
@ConditionalOnProperty(name="easy-trans.is-enable-redis",
havingValue="true")
public RedisCacheService redisCacheService(org.springframework.data.redis.core.RedisTemplate redisTemplate,
AutoTransService autoTransService)
@Bean(value="springContextUtil") public SpringContextUtil springContextUtil()
@Autowired(required=false) public void setConvertUtil(Convert convert)
convert - ReflectUtils.setValue(Object, String, Object)public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanjava.lang.ExceptionCopyright © 2024. All Rights Reserved.