Quick Start
![]() | Dubbo also support usage WITHOUT spring, but it's more painful and not recommended. Please refer to: API Config (+) |
Service Provider
(#)
![]() | See: Demo Provider Installation (+) |
Define the service interface:
DemoService.java
Provide the service implementation
DemoServiceImpl.java
Setup the spring configuration
provider.xml
Kick it off with following java code
Provider.java
Congrats! The DemoService now is exported by dubbo and waiting for incoming requests at port 20880.
Service Consumer
(#)
![]() | See: Demo Consumer Installation (+) |
Setup the spring XML
consumer.xml
Client side java code.
Consumer.java
Add Comment