Search in sources :

Example 6 with RegistryConfigBean

use of com.weibo.api.motan.config.springsupport.RegistryConfigBean in project motan by weibocom.

the class AnnotationRpcClientDemo method registryConfig.

@Bean(name = "registry")
public RegistryConfigBean registryConfig() {
    RegistryConfigBean config = new RegistryConfigBean();
    // config.setRegProtocol("zookeeper");
    // config.setAddress("127.0.0.1:2181");
    config.setRegProtocol("direct");
    config.setAddress("127.0.0.1:8002");
    return config;
}
Also used : RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) BasicRefererConfigBean(com.weibo.api.motan.config.springsupport.BasicRefererConfigBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Aggregations

ProtocolConfigBean (com.weibo.api.motan.config.springsupport.ProtocolConfigBean)6 RegistryConfigBean (com.weibo.api.motan.config.springsupport.RegistryConfigBean)6 Bean (org.springframework.context.annotation.Bean)6 BasicServiceConfigBean (com.weibo.api.motan.config.springsupport.BasicServiceConfigBean)4 AnnotationBean (com.weibo.api.motan.config.springsupport.AnnotationBean)3 BasicRefererConfigBean (com.weibo.api.motan.config.springsupport.BasicRefererConfigBean)2