title: java.lang.IllegalStateException: Unable to read meta-data for class while implementing open api with spring boot
body: <p>I am trying to implement <strong>Open API Doc</strong> and <strong>Open API UI</strong> using Spring inside Spring Boot:</p>
  
  <p>I am referring following guide to do so:
  <a href="https://www.baeldung.com/spring-rest-openapi-documentation" rel="noreferrer">https://www.baeldung.com/spring-rest-openapi-documentation</a></p>
  
  <p>Dependencies in maven are as follows:</p>
  
  <pre><code>        &lt;!-- https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-core --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
              &lt;artifactId&gt;springdoc-openapi-core&lt;/artifactId&gt;
              &lt;version&gt;1.1.49&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
              &lt;artifactId&gt;springdoc-openapi-ui&lt;/artifactId&gt;
              &lt;version&gt;1.2.20&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>Spring Boot Version that I am using is 2.2</p>
  
  <p>I am getting following metadata related error while running application via <code>./mvnw spring-boot:run</code></p>
  
  <pre><code>java.lang.IllegalStateException: Unable to read meta-data for class org.springdoc.core.MultipleOpenApiSupportConfiguration
          at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationMetadata(AutoConfigurationSorter.java:233) ~[spring-boot-autoconfigure-2.2.2.RELEASE.jar:2.2.2.RELEASE]
          at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getOrder(AutoConfigurationSorter.java:204) ~[spring-boot-autoconfigure-2.2.2.RELEASE.jar:2.2.2.RELEASE]
          at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.access$000(AutoConfigurationSorter.java:150) ~[spring-boot-autoconfigure-2.2.2.RELEASE.jar:2.2.2.RELEASE]
          at org.springframework.boot.autoconfigure.AutoConfigurationSorter.lambda$getInPriorityOrder$0(AutoConfigurationSorter.java:63) ~[spring-boot-autoconfigure-2.2.2.RELEASE.jar:2.2.2.RELEASE]
          at java.base/java.util.TimSort.countRunAndMakeAscending(TimSort.java:360) ~[na:na]
          at java.base/java.util.TimSort.sort(TimSort.java:234) ~[na:na]
          at java.base/java.util.Arrays.sort(Arrays.java:1516) ~[na:na]
  </code></pre>
  
  <p>Any clue why it is happening?</p>