https://crossoverjie.top/2017/05/02/SSM13/
将 dubbo 服务对外暴露出http
服务。
可供其他任何语言进行调用。
git clone https://github.com/crossoverJie/SSM-DUBBO-HTTP.git
cd SSM-DUBBO-HTTP
mvn clean
mvn install
<dependency>
<groupId>com.crossoverJie</groupId>
<artifactId>SSM-HTTP-PROVIDER</artifactId>
<version>1.0.0</version>
</dependency>
<!--dubbo服务暴露为http服务-->
<bean class="com.crossoverJie.dubbo.http.conf.HttpProviderConf">
<property name="usePackage">
<list>
<!--需要暴露服务的接口包名,可多个-->
<value>com.crossoverJie.api</value>
</list>
</property>
</bean>
<!--扫描暴露包-->
<context:component-scan base-package="com.crossoverJie.dubbo.http"/>
crossoverJie#gmail.com