You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "beiwei30 (GitHub)" <gi...@apache.org> on 2018/12/04 05:30:38 UTC
[GitHub] [incubator-dubbo] beiwei30 commented on issue #2852:
[Dubbo-2851] Fix
@wangmingbo123 we cannot do this. This logic is for compatibility purpose, and furthermore, for better user experience, since with this logic, it is unnecessary to define a protocol separately.
```xml
<!-- no need to define protocol -->
<!--<dubbo:protocol name="dubbo" port="20890"/>-->
<!-- service implementation, as same as regular local bean -->
<bean id="demoService" class="org.apache.dubbo.samples.basic.impl.DemoServiceImpl"/>
<!-- declare the service interface to be exported -->
<dubbo:service interface="org.apache.dubbo.samples.basic.api.DemoService" ref="demoService" protocol="dubbo"/>
```
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/2852 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org