基于注解
https://github.com/Nirvana010...
基于xml文件
https://github.com/Nirvana010...
区别
基于xml文件方式,在服务提供方,新增provider.xml,在里面配置服务提供方相应的信息;在启动类中新增@ImportResource("provider.xml");去掉具体服务实现类中@Service注解;
在服务消费方,新增consumer.xml的配置文件;在启动类中新增@ImportResource("consumer.xml");
使用spring的@Autowired注解替代@Reference 。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。