[
https://issues.apache.org/jira/browse/CXF-6834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15197238#comment-15197238
]
Sergey Beryozkin commented on CXF-6834:
---------------------------------------
Thanks for the links, I'll investigate as we have a lot of related queries
indeed.
Can you have a look at this demo:
https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot
it has 3 SpringBot resource variations (with/without auto-discovery):
https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service
and this one is currently being used:
https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleScanRestApplication.java
It loads Hello1 and Hello2 JAX-RS resources and enables a Swagger feature - I
could've enabled via a CXF Features annotation directly on the resource class
but with two resources it is simpler to return it from a Bean method.
I'm going to spend more time asap on this issue to get a better CXF-SpintBoot
integration done anyway. If you have any comments on the CXF demo - let me know
please
> 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.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)