Search in sources :

Example 6 with ProtocolConfigBean

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

the class SpringBootRpcClientDemo method protocolConfig1.

@Bean(name = "demoMotan")
public ProtocolConfigBean protocolConfig1() {
    ProtocolConfigBean config = new ProtocolConfigBean();
    config.setDefault(true);
    config.setName("motan");
    config.setMaxContentLength(1048576);
    return config;
}
Also used : ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) BasicRefererConfigBean(com.weibo.api.motan.config.springsupport.BasicRefererConfigBean) AnnotationBean(com.weibo.api.motan.config.springsupport.AnnotationBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Aggregations

AnnotationBean (com.weibo.api.motan.config.springsupport.AnnotationBean)6 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 BasicRefererConfigBean (com.weibo.api.motan.config.springsupport.BasicRefererConfigBean)3 BasicServiceConfigBean (com.weibo.api.motan.config.springsupport.BasicServiceConfigBean)3