You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2021/08/18 02:10:00 UTC

[jira] [Resolved] (CXF-8539) Allow client-only Spring Boot autoconfiguration

     [ https://issues.apache.org/jira/browse/CXF-8539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andriy Redko resolved CXF-8539.
-------------------------------
    Resolution: Fixed

Documentation had been updated https://cwiki.apache.org/confluence/display/CXF20DOC/SpringBoot

> Allow client-only Spring Boot autoconfiguration
> -----------------------------------------------
>
>                 Key: CXF-8539
>                 URL: https://issues.apache.org/jira/browse/CXF-8539
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 3.4.3, 3.3.11
>            Reporter: Roland Müller
>            Assignee: Andriy Redko
>            Priority: Major
>             Fix For: 3.3.12, 3.4.5, 3.5.0
>
>
> We have an application that uses CXF as a SOAP client. I want to enable Micrometer instrumentation, so I added the {{cxf-spring-boot-autoconfigure}} dependency for not having to configure everything manually. The {{CxfAutoConfiguration}} automatically registers a servlet which we do not want since we are client-only. I added
> {code:java}
> @SpringBootApplication(exclude = {CxfAutoConfiguration.class})
> {code}
> so that only the {{MicrometerMetricsAutoConfiguration}} is active. But this does not work, I get
> {noformat}
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.apache.cxf.spring.boot.autoconfigure.CxfProperties' available
> {noformat}
> Would it possible to either introduce a property to disable the servlet instantiation, or change the {{MicrometerMetricsAutoConfiguration}} so that it is not dependent on {{CxfAutoConfiguration}}?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)