@@ -0,0 +1,1948 @@
+package com.github.sbugat.samplerest.config;%0D%0A%0D%0Aimport java.util.List;%0D%0A%0D%0Aimport javax.inject.Inject;%0D%0A%0D%0Aimport org.apache.cxf.feature.LoggingFeature;%0D%0Aimport org.apache.cxf.jaxrs.JAXRSServerFactoryBean;%0D%0Aimport org.springframework.context.annotation.Bean;%0D%0Aimport org.springframework.context.annotation.Configuration;%0D%0Aimport org.springframework.context.annotation.Import;%0D%0A%0D%0Aimport com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;%0D%0Aimport com.github.sbugat.samplerest.resource.BookResource;%0D%0Aimport com.github.sbugat.samplerest.resource.SampleExceptionMapper;%0D%0Aimport com.github.sbugat.samplerest.resource.UserResource;%0D%0Aimport com.google.common.collect.Lists;%0D%0A%0D%0Aimport io.swagger.jaxrs.listing.ApiListingResource;%0D%0Aimport io.swagger.jaxrs.listing.SwaggerSerializers;%0D%0A%0D%0A@Configuration%0D%0A@Import(ApplicationConfig.class)%0D%0Apublic class CXFConfiguration %7B%0D%0A%0D%0A%09/* Service-resources beans. */%0D%0A%0D%0A%09@Inject%0D%0A%09private UserResource userResource;%0D%0A%0D%0A%09@Inject%0D%0A%09private BookResource bookResource;%0D%0A%0D%0A%09@Inject%0D%0A%09private ApiListingResource apiListingResource;%0D%0A%0D%0A%09@Inject%0D%0A%09private SwaggerSerializers swaggerSerializers;%0D%0A%0D%0A%09@Inject%0D%0A%09private JacksonJaxbJsonProvider jacksonJaxbJsonProvider;%0D%0A%0D%0A%09@Inject%0D%0A%09private SampleExceptionMapper sampleExceptionMapper;%0D%0A%0D%0A%09@Bean(initMethod = %22create%22)%0D%0A%09public JAXRSServerFactoryBean jAXRSServerFactoryBean() %7B%0D%0A%0D%0A%09%09final JAXRSServerFactoryBean jAXRSServerFactoryBean = new JAXRSServerFactoryBean();%0D%0A%09%09jAXRSServerFactoryBean.setAddress(%22/%22);%0D%0A%09%09jAXRSServerFactoryBean.getFeatures().add(new LoggingFeature());%0D%0A%0D%0A%09%09final List%3CObject%3E serviceBeanslist = Lists.newArrayList(userResource, bookResource, apiListingResource);%0D%0A%09%09jAXRSServerFactoryBean.setServiceBeans(serviceBeanslist);%0D%0A%0D%0A%09%09final List%3CObject%3E providerslist = Lists.newArrayList(swaggerSerializers, jacksonJaxbJsonProvider, sampleExceptionMapper);%0D%0A%09%09jAXRSServerFactoryBean.setProviders(providerslist);%0D%0A%0D%0A%09%09return jAXRSServerFactoryBean;%0D%0A%09%7D%0D%0A%7D%0D%0A

Add CXF configuration bean