title: Spring Boot app fails on runtime after upgrade to 2.6
body: <p>After upgrading my <code>Spring Boot</code> from <code>2.5</code> to <code>2.6</code> my app fails on runtime regardless of successful build with maven.
  this is error shown in console:</p>
  <pre><code>Description:
  
  An attempt was made to call a method that does not exist. The attempt was made from the following location:
  
      org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer$CachingMetadataReaderFactoryPostProcessor.register(SharedMetadataReaderFactoryContextInitializer.java:104)
  
  The following method did not exist:
  
      'org.springframework.beans.factory.support.BeanDefinitionBuilder org.springframework.beans.factory.support.BeanDefinitionBuilder.rootBeanDefinition(java.lang.Class, java.util.function.Supplier)'
  
  The calling method's class, org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer$CachingMetadataReaderFactoryPostProcessor, was loaded from the following location:
  
      jar:file:/Users/erfanmorsali/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.6.2/spring-boot-autoconfigure-2.6.2.jar!/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializer$CachingMetadataReaderFactoryPostProcessor.class
  
  The called method's class, org.springframework.beans.factory.support.BeanDefinitionBuilder, is available from the following locations:
  
      jar:file:/Users/erfanmorsali/.m2/repository/org/springframework/spring-beans/5.3.4/spring-beans-5.3.4.jar!/org/springframework/beans/factory/support/BeanDefinitionBuilder.class
  
  The called method's class hierarchy was loaded from the following locations:
  
      org.springframework.beans.factory.support.BeanDefinitionBuilder: file:/Users/erfanmorsali/.m2/repository/org/springframework/spring-beans/5.3.4/spring-beans-5.3.4.jar
  
  
  Action:
  
  Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer$CachingMetadataReaderFactoryPostProcessor and org.springframework.beans.factory.support.BeanDefinitionBuilder
  
  </code></pre>
  <p>Whats wrong?
  I dont know what causes this error.
  Thanks for your help.</p>