Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8539

Allow client-only Spring Boot autoconfiguration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.3, 3.3.11
    • 3.5.0, 3.3.12, 3.4.5
    • None
    • None
    • Unknown

    Description

      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

      @SpringBootApplication(exclude = {CxfAutoConfiguration.class})
      

      so that only the MicrometerMetricsAutoConfiguration is active. But this does not work, I get

      org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.apache.cxf.spring.boot.autoconfigure.CxfProperties' available
      

      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?

      Attachments

        Issue Links

          Activity

            People

              reta Andriy Redko
              rmueller83 Roland Müller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: