title: Get HttpServletRequest attribute value using Spring annotation
body: <p>I have a HandlerInterceptorAdaptor.preHandle() method that simplified looks like this:</p>
  
  <pre><code>@Override
  public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {        
      request.setAttribute("MyObject", myObject);
  
      return true;
  }
  </code></pre>
  
  <p>Next when my <code>@RestController</code> gets called, I would like it to look like this:</p>
  
  <pre><code>@RequestMapping(value="/", method=RequestMethod.PUT)
  public ResponseEntity myMethod (MyObject myObject) {
  
  }
  </code></pre>
  
  <p>I imagine there is some annotation I can put there where Spring will add the attribute I set earlier in the HandlerInterceptorAdaptor.</p>
  
  <p>Could someone please tell me what that is? </p>