title: How can i define a Hystrix Client Fallback directly in a @FeignClient
body: <p>I'm tring to define my fallback function directly in the feign defenition as described in the spring documentation, Please see the code below, but i get an error that i can't define a static class " modifier static not allowed here". How can i get the fallback function to run when feign call fails? </p>
  
  <p>Regards,</p>
  
  <p>Nadav</p>
  
  <pre><code>@FeignClient(name = "hello", fallback = HystrixClientFallback.class)
  
  protected interface HystrixClient {
  
  @RequestMapping(method = RequestMethod.GET, value = "/hello")
  
       Hello iFailSometimes();
  
  }
  
  static class HystrixClientFallback implements HystrixClient {
  
  @Override
  
  public Hello iFailSometimes() {
  
  return new Hello("fallback");
  
  }
  
  }
  </code></pre>