title: @ControllerAdvice on the method level
body: <p>I have two ControllerAdvices in my spring mvc project.</p>
  
  <pre><code>//return the json message
  @ControllerAdvice(annotations = RestController.class) 
  public class AdviceRestController
  
  //redirect to the error
  @ControllerAdvice(annotations = Controller.class) 
  public class AdviceController
  </code></pre>
  
  <p>now, I have some @ResponseBody  annotated method in the @Controller  annotated class. Is there any  annotation for the method level, then I can write the method in my AdviceController for  @ResponseBody  annotated method only.</p>
  
  <p>i.e.</p>
  
  <pre><code>//reoponsebody method only
  @ReoponsebodyMethod
  @ExceptionHandler({Exception.class})
  @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
  public String handleIllegalStateException(Exception ex) {
      //return son
  }
  </code></pre>