title: BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource
body: <p>I'm writing a small program for circuit breaker, When running the application it throws exceptions.<br> springboot versin 2.5.4, Hystrix Version using <strong>2.2.6</strong><br>
  <strong>BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@659e0bfd]</strong></p>
  <h2><strong>Pom.xml</strong></h2>
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.5.4&lt;/version&gt;
      &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  &lt;groupId&gt;com.ramgovindhare&lt;/groupId&gt;
  &lt;artifactId&gt;cricuitbreakerhystrix&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;CricuitBreakerHystrix&lt;/name&gt;
  &lt;description&gt;firstMicroserviceProject&lt;/description&gt;
  &lt;properties&gt;
      &lt;java.version&gt;11&lt;/java.version&gt;
  &lt;/properties&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-netflix-hystrix --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-netflix-hystrix&lt;/artifactId&gt;
          &lt;version&gt;2.2.8.RELEASE&lt;/version&gt; &lt;--- **See this**
      &lt;/dependency&gt;
      
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  <h2><strong>CricuitBreakerHystrixApplication.java</strong></h2>
  <pre><code>@SpringBootApplication
  @EnableCircuitBreaker
  public class CricuitBreakerHystrixApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(CricuitBreakerHystrixApplication.class, args);
      }
  }
  </code></pre>
  <h2><strong>Controller class</strong></h2>
  <pre><code>@RestController
  public class CricutiBreakerHystrixController {
      
      @GetMapping(&quot;/process&quot;)
      @HystrixCommand(fallbackMethod = &quot;doWork&quot;)
      public String doProcess() {
          String response = &quot;This msg come for processes&quot;;
          int i = 10 / 0;
          return response;
      }
      
      public String doWork() {
          return &quot;This msg coming from doWork()...!!&quot;;
      }
  }
  </code></pre>