You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Spring Boot CXF JAX-WS Starter

Features

Registers CXFServlet with a  "/services/*" URL pattern for serving CXF JAX-WS endpoints.

Please see JAX-WS Spring Boot demo.

Setup

JAX-WS Starter
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
    <version>3.1.7</version>
</dependency>

 

Additional Configuration

Use "cxf.path" property to customize a CXFServlet URL pattern.

Spring Boot CXF JAX-RS Starter

Features

Registers CXF Servlet with a  "/services/*" URL pattern for serving CXF JAX-RS endpoints.

Optionally auto-discovers JAX-RS root resources and providers and creates a JAX-RS endpoint.

Please see JAX-RS Spring Boot and JAX-RS Spring Boot Scan demos.

Setup

JAX-RS Starter
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
    <version>3.1.7</version>
</dependency>

Additional Configuration

Use "cxf.path" property to customize a CXFServlet URL pattern.

Use "cxf.jaxrs.component-scan" property to create a JAX-RS endpoint from the auto-discovered JAX-RS root resources and providers which are marked as Spring Components (annotated with Spring @Component or created and returned from @Bean methods).

Use "cxf.jaxrs.classes-scan" property to create a JAX-RS endpoint from the auto-discovered JAX-RS root resources and provider classes. Such classes do not have to be annotated Spring @Component. This property needs be accompanied with a "cxf.jaxrs.classes-scan-packages" property which sets a comma-separated list of the packages to scan.

Note "cxf.jaxrs.component-scan" and "cxf.jaxrs.classes-scan" are mutually exclusive.

 

  • No labels