无法在Spring Boot Application顶部使用CXF运行摇摇欲坠

时间:2019-02-04 12:02:50

标签: spring spring-boot swagger cxf swagger-ui

无法在Spring Boot应用程序顶部使用CXF运行,但是在Spring Rest Web服务上运行良好。

1 个答案:

答案 0 :(得分:0)

下面的罐子与弹簧靴子罐发生冲突。刚刚取出下面提到的罐子。

        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxrs</artifactId>
            <version>3.1.13</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-transports-http</artifactId>
            <version>3.1.13</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-ws-policy</artifactId>
            <version>3.1.13</version>
        </dependency>

        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-wsdl</artifactId>
            <version>3.1.13</version>
        </dependency>
Added below spring boot jars.

        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-service-description-swagger</artifactId>
            <version>${cxf.version}</version>
        </dependency>