title: How can I run common code for most requests in my Spring MVC Web App?
body: <p>i.e.</p>
  
  <p>I have various URLs mapped using Spring MVC RequestMapping</p>
  
  <pre><code>@RequestMapping(value = "/mystuff", method = RequestMethod.GET) 
  @RequestMapping(value = "/mystuff/dsf", method = RequestMethod.GET) 
  @RequestMapping(value = "/mystuff/eee", method = RequestMethod.GET) 
  </code></pre>
  
  <p>etc</p>
  
  <p>I want to run some common action before about 90% of my requests.  These are across several controllers.</p>
  
  <p>Is there anyway to do that without delving into AOP?  And if I have to use aspects, any guidance on how to do this?!</p>
  
  <p>Thanks!</p>
  
  <p>More info:</p>
  
  <p>It is to run some app specific security - we are chained to a parent security set up, which we need to read and call into, and then need to access a cookie prior to some most of ours calls, but not all.</p>