Skip to content

internetitem/spring-boot-cxf-jaxrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Spring Boot CXF Integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages