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

OpenApiAutoConfiguration doesn't work with classes-scan-packages

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.7
    • Fix Version/s: 3.2.8, 3.3.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: