經過Spring-boot整合dubbo框架

spring-boot-dubbo-sample

簡介

此小程序展現瞭如何用spring-boot啓動一個dubbo provider,並經過spring-boot啓動一個consumer。本程序,下載後無需修改能夠直接運行
Spring-boot啓動Dubbo時,無需啓動tomcat等容器,即非web項目,那麼須要在springApplication的main中設置web(false)便可git

運行方法

  1. maven引入相關包後,運行provider中的App中的main,便可啓動provider
  2. 啓動provider後,運行consumer中的App的main,即讀取provider中的helloService

 

項目地址:web

http://git.oschina.net/smarti/spring-boot-dubbo-samplespring

相關文章
相關標籤/搜索