title: Spring-Cloud Hystrix (fallback method wasn't found)
body: <p>I'm trying to use hyst however when calling the save method, which makes a post with resttemplate, gives the following exception:</p>
  
  <p>com.netflix.hystrix.contrib.javanica.exception.FallbackDefinitionException: fallback method wasn't found: breaker([class com.wnb.mastercard.domain.enroll.EnrollCommand])</p>
  
  <p>Can someone help me?</p>
  
  <pre><code>@Component
  public class EnrollRepositoryRest {
  
      @Autowired
      private RestTemplate template;
  
      @Value("${beblue-card-enroll.url}")
      private String url;
  
      public Enroll getEnrollByCardId(String cardId) {
  
          Enroll[] enroll = template.getForObject(url + "cardEnroll/enroll/" + cardId, Enroll[].class);
  
          return enroll[0];
      }
  
      @HystrixCommand(fallbackMethod = "breaker")
      public void save(EnrollCommand command) {
          template.postForObject(url + "/cardEnroll/enroll", command, EnrollCommand.class);
      }
  
      public String breaker() {
          System.out.println("HYSTRIX EXECUTADO");
          return "Hystrix is Ok";
      }
  }
  </code></pre>