title: MethodSecurityInterceptor for multiple methods in spring boot
body: <p>This is related to the answer of <a href="https://stackoverflow.com/questions/13376202/methodsecurityinterceptor-for-multiple-methods">this question</a> by Mickael Marrache on how to secure services using an authorization logic that can be different across the methods.</p>
  
  <p>I liked better the response provided by Maciej Ziarko using <a href="https://stackoverflow.com/a/13380952/2796922">Method Security AccessDecisionManager </a> instead of the one accepted, since it uses the same annotation <code>@Secured</code> with diferente custom arguments.</p>
  
  <p>Since I'm using Spring-Boot with no XML config, took me a while to figure out how to do it.</p>
  
  <p>So, here is my answer.</p>
  
  <p>It just explains how to replace the xml config with the Java Config configuration.</p>