0
camel-spring 응용 프로그램에서 swagger를 구성 할 수 있습니까? 나는 camel-blueprint xml과 camel-spring 응용 프로그램과 통합 할 수는 없지만 느린 통합을 시도했습니다. 구성 아래낙타 컨텍스트 xml 파일의 구성을 바꿔서
는
<service interface="javax.servlet.http.HttpServlet">
<service-properties>
<entry key="alias" value="/api-docs/*" />
<entry key="init-prefix" value="init." />
<entry key="init.base.path" value="//0.0.0.0:8080/rest" />
<entry key="init.api.path" value="//0.0.0.0:8181/api-docs" />
<entry key="init.api.title" value="Camel Rest Example API" />
<entry key="init.api.version" value="1.2" />
<entry key="init.api.description" value="Camel Rest Example with Swagger that provides an User REST service" />
</service-properties>
<bean class="org.apache.camel.component.swagger.DefaultCamelSwaggerServlet" />
</service>
당신이 낙타 스프링 컨텍스트 XML 파일에 동일한 구성을하고에 도움을 주시겠습니까 청사진 XML 파일에 추가. 사전에.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf"
xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util" xmlns:camel="http://camel.apache.org/schema/spring"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<required code>
</beans>