Spring Boot CXF Integration

Spring Boot integration for CXF, specifically for JAX-RS

License

License

Categories

Categories

Spring Boot Container Microservices Net
GroupId

GroupId

com.internetitem.spring
ArtifactId

ArtifactId

spring-boot-cxf-jaxrs
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Boot CXF Integration
Spring Boot integration for CXF, specifically for JAX-RS
Project URL

Project URL

https://github.com/internetitem/spring-boot-cxf-jaxrs
Project Organization

Project Organization

Internet Item
Source Code Management

Source Code Management

https://github.com/internetitem/spring-boot-cxf-jaxrs

Download spring-boot-cxf-jaxrs

How to add to project

<!-- https://jarcasting.com/artifacts/com.internetitem.spring/spring-boot-cxf-jaxrs/ -->
<dependency>
    <groupId>com.internetitem.spring</groupId>
    <artifactId>spring-boot-cxf-jaxrs</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.internetitem.spring/spring-boot-cxf-jaxrs/
implementation 'com.internetitem.spring:spring-boot-cxf-jaxrs:1.1'
// https://jarcasting.com/artifacts/com.internetitem.spring/spring-boot-cxf-jaxrs/
implementation ("com.internetitem.spring:spring-boot-cxf-jaxrs:1.1")
'com.internetitem.spring:spring-boot-cxf-jaxrs:jar:1.1'
<dependency org="com.internetitem.spring" name="spring-boot-cxf-jaxrs" rev="1.1">
  <artifact name="spring-boot-cxf-jaxrs" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.internetitem.spring', module='spring-boot-cxf-jaxrs', version='1.1')
)
libraryDependencies += "com.internetitem.spring" % "spring-boot-cxf-jaxrs" % "1.1"
[com.internetitem.spring/spring-boot-cxf-jaxrs "1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.fasterxml.jackson.jaxrs : jackson-jaxrs-json-provider jar 2.4.4

provided (3)

Group / Artifact Type Version
org.springframework : spring-context jar 4.1.3.RELEASE
org.springframework.boot : spring-boot-starter-web jar 1.2.0.RELEASE
org.apache.cxf : cxf-rt-frontend-jaxrs jar 3.0.2

Project Modules

There are no modules declared in this project.

Spring Boot CXF Integration

Spring Boot integration for CXF, specifically for JAX-RS.

Usage

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.

Dependencies

You must declare Spring, Spring Boot and CXF as dependencies. This POM will bring in Jackson (for JSON support) automatically.

Customization

  • 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 as JacksonJaxbJsonProvider) 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

Versions

Version
1.1
1.0