[ https://issues.apache.org/jira/browse/CXF-6834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245371#comment-15245371 ]
Sergey Beryozkin commented on CXF-6834: --------------------------------------- Thanks, that was the curiosity as opposed to the concerns :-). OK, so speaking of the existing CXF JAX-WS and JAX-RS Spring Boot demos, we are talking about omitting the explicit CXFServlet registration as in (1) https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jaxws_spring_boot/src/main/java/sample/ws/WebServiceConfig.java#L39 or (2) https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestApplication.java#L44 for (2) I can def have an extension of JaxRsConfig annotation, say JaxRsServletConfig where the default CXFServlet is added. and with the fewer dependencies, etc... The customization of the servlet URI mappings will help, in (2), to get rid of this code: https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleScanRestApplication2.java#L48 which is a variation of (2) but the servlet mapping gets customized with Application's ApplicationPaths annotation... This is similar to the default CXF HTTP OSGI 'transport'. Thanks > add support for CXF inside Spring Boot > -------------------------------------- > > Key: CXF-6834 > URL: https://issues.apache.org/jira/browse/CXF-6834 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Reporter: james strachan > Assignee: Sergey Beryozkin > Fix For: 3.1.7, 3.2.0 > > > right now spring boot has support for Jersey; it'd be great to integrate > support for CXF too. > e.g. > * > https://github.com/spring-projects/spring-boot/tree/master/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey > * > https://github.com/spring-projects/spring-boot/tree/master/spring-boot-starters/spring-boot-starter-jersey > * > https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-jersey > * > https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-jersey1 > mostly this is about submitting a PR against the spring-boot project; but it > may require a few changes in CXF to be more spring/spring-boot ready or to > work better with Spring Boot's auto configuration mechanism and tooling: > * > https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-auto-configuration.html > * > https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html > Docs on creating auto configuration here: > https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-developing-auto-configuration.html -- This message was sent by Atlassian JIRA (v6.3.4#6332)