package com.xunhong.erp.turbo.rpc.config;

import com.xunhong.erp.turbo.rpc.facade.FacadeAspect;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Rpc 配置
 *
 * @author shenyifei
 */
@Configuration
@ConditionalOnProperty(name = "dubbo.enabled", havingValue = "true")
@EnableDubbo(scanBasePackages = "com.xunhong.erp.turbo")
public class RpcConfiguration {

	@Bean
	public FacadeAspect facadeAspect() {
		return new FacadeAspect();
	}
}
