快速启动
| Dubbo采用全Spring配置方式,透明化接入应用,对应用没有任何API侵入,只需用Spring加载Dubbo的配置即可,Dubbo基于Spring的Schema扩展进行加载。 | 
服务提供者
(#)
定义服务接口: (该接口需单独打包,在服务提供方和消费方共享)
DemoService.java
在服务提供方实现接口:(对服务消费方隐藏实现)
DemoServiceImpl.java
用Spring配置声明暴露服务:
provider.xml
加载Spring配置:
Provider.java
服务消费者
(#)
通过Spring配置引用远程服务:
consumer.xml
加载Spring配置,并调用远程服务:(也可以使用IoC注入)
Consumer.java
        
            Labels:
        
        
            
                None
            
            
                            
                    
        
        
    
0 Comments
comments.show.hideAnonymous replies:
Help Tips
- Text formatting
 
     
     
    - Headings
    
  
     
    - Lists
 
     
     
Full notation guide*bold*bold_italic_italich1.Large headingh5.Small heading*Bulleted point#Numbered point