package org.hongxi.whatsmars.dubbo.demo.consumer.config;

import org.apache.dubbo.config.RegistryConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by shenhongxi on 2018/11/30.
 */
@Configuration
public class DubboConfig {

    /**
     * 配置文件里配置默认的，这里配置其他需要的
     */
    @Bean("otherRegistry")
    @ConfigurationProperties(prefix = "registry.other")
    public RegistryConfig otherRegistry() {
        return new RegistryConfig();
    }
}
