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

OpenApiAutoConfiguration doesn't work with classes-scan-packages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.7
    • 3.2.8, 3.3.0
    • None
    • None
    • Unknown

    Description

      I just noticed that the OpenApiAutoConfiguration introduced in CXF-7853 doesn't work if classes-scan-packages: org.apache.cxf.jaxrs.openapi is used. In this case OpenApiFeature is added as a Provider by AbstractSpringComponentScanServer and OpenApiAutoConfiguration doesn't hook in.

      Sample:

      git clone https://github.com/deki/swagger-samples/ --branch java-cxf-spring-boot-minimal
      cd java/java-cxf-spring-boot-minimal
      mvn spring-boot:run
      

      Attachments

        Issue Links

          Activity

            People

              deki Dennis Kieselhorst
              deki Dennis Kieselhorst
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: