You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by il...@apache.org on 2018/12/27 14:52:49 UTC

[incubator-dubbo-samples] branch master updated: correct package name and dependencis in REST samples

This is an automated email from the ASF dual-hosted git repository.

iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c9662b  correct package name and dependencis in REST samples
4c9662b is described below

commit 4c9662bdd47ad24f92a3bd225daa47a23ad2fdf1
Author: beiwei30 <ia...@gmail.com>
AuthorDate: Thu Dec 27 22:52:16 2018 +0800

    correct package name and dependencis in REST samples
---
 dubbo-samples-rest/pom.xml                                     | 5 +++++
 dubbo-samples-rest/src/main/resources/spring/rest-provider.xml | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dubbo-samples-rest/pom.xml b/dubbo-samples-rest/pom.xml
index b07e995..dbe08da 100644
--- a/dubbo-samples-rest/pom.xml
+++ b/dubbo-samples-rest/pom.xml
@@ -60,6 +60,11 @@
             <artifactId>spring-web</artifactId>
             <version>${spring.version}</version>
         </dependency>
+        <dependency>
+            <groupId>com.alibaba.spring</groupId>
+            <artifactId>spring-context-support</artifactId>
+            <version>1.0.2</version>
+        </dependency>
 
         <dependency>
             <groupId>io.swagger</groupId>
diff --git a/dubbo-samples-rest/src/main/resources/spring/rest-provider.xml b/dubbo-samples-rest/src/main/resources/spring/rest-provider.xml
index ba16d9c..5fc0d95 100644
--- a/dubbo-samples-rest/src/main/resources/spring/rest-provider.xml
+++ b/dubbo-samples-rest/src/main/resources/spring/rest-provider.xml
@@ -58,7 +58,7 @@
 
 
     <!-- SwaggerUI -->
-    <bean id="swaggerService" class="com.alibaba.dubbo.integration.swagger.DubboSwaggerApiListingResource" />
+    <bean id="swaggerService" class="org.apache.dubbo.integration.swagger.DubboSwaggerApiListingResource" />
     <bean id="beanConfig" class="io.swagger.jaxrs.config.BeanConfig">
         <property name="schemes" value="http" />
         <property name="resourcePackage" value="org.apache.dubbo.samples.rest.api"/>
@@ -72,7 +72,7 @@
         <property name="licenseUrl" value="http://www.apache.org/licenses/LICENSE-2.0.html"/>
         <property name="scan" value="true" />
     </bean>
-    <dubbo:service interface="com.alibaba.dubbo.integration.swagger.DubboSwaggerService" ref="swaggerService" protocol="rest" />
+    <dubbo:service interface="org.apache.dubbo.integration.swagger.DubboSwaggerService" ref="swaggerService" protocol="rest" />
 
 
-</beans>
\ No newline at end of file
+</beans>