Spring Boot integration for CXF, specifically for JAX-RS.
Add the following to your pom.xml
(updating <version>
where appropriate):
<dependency>
<groupId>com.internetitem.spring</groupId>
<artifactId>spring-boot-cxf-jaxrs</artifactId>
<version>1.1</version>
</dependency>
All beans tagged with @Path
will be automatically added as JAX-RS Services. All beans tagged with @Provider
will be added as JAX-RS Providers.
You must declare Spring, Spring Boot and CXF as dependencies. This POM will bring in Jackson (for JSON support) automatically.
- The property
cxf.path
can be used to customize where the CXF Servlet is "mounted". It defaults to "/services/*
" - If the property
cxf.log.requests
is set, request data will be logged - If a bean of type
JacksonJsonProvider
(such asJacksonJaxbJsonProvider
) is found, that will be used instead of the built-in version - If a bean of type
ObjectMapper
is found, that will be used instead of the built-in version