Fixing Swagger 2 demo to properly discover service beans

Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/33b3c297
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/33b3c297
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/33b3c297

Branch: refs/heads/master-jaxrs-2.1
Commit: 33b3c2978b06e7fcf917eaa15157fdb0371cf1e8
Parents: e7e75c5
Author: reta <[email protected]>
Authored: Mon Aug 29 18:21:21 2016 -0400
Committer: reta <[email protected]>
Committed: Mon Aug 29 18:21:21 2016 -0400

----------------------------------------------------------------------
 .../description_swagger2_web/src/main/webapp/WEB-INF/context.xml   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/33b3c297/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/webapp/WEB-INF/context.xml
----------------------------------------------------------------------
diff --git 
a/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/webapp/WEB-INF/context.xml
 
b/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/webapp/WEB-INF/context.xml
index 0893d38..4c54b90 100644
--- 
a/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/webapp/WEB-INF/context.xml
+++ 
b/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/webapp/WEB-INF/context.xml
@@ -44,6 +44,7 @@
     <bean id="swagger2Feature" 
class="org.apache.cxf.jaxrs.swagger.Swagger2Feature">
         <property name="basePath" value="/app/swaggerSample"/>
         <property name="usePathBasedConfig" value="true"/>
+        <property name="scan" value="false"/>
     </bean>
 
     <!-- First Endpoint -->
@@ -67,6 +68,7 @@
     <bean id="swagger2Feature2" 
class="org.apache.cxf.jaxrs.swagger.Swagger2Feature">
         <property name="basePath" value="/app/swaggerSample2"/>
         <property name="usePathBasedConfig" value="true"/>
+        <property name="scan" value="false"/>
     </bean>
 
     <!-- First Endpoint -->

Reply via email to