@Configuration
@ServletComponentScan(value="com.fhs.trans.filter")
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 @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-global",
havingValue="true")
public EasyTransResponseBodyAdvice EasyTransResponseBodyAdvice()
@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()
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanjava.lang.ExceptionCopyright © 2023. All Rights Reserved.