conflit @RequestMapping et @Secured
bonjour,
je souhaite sécuriser l accès d un contrôleur par annotation, lorsque que je mets cela en place mon contrôleur n est plus trouver par le request dispatcher
Code:
1 2
|
WARN PageNotFound - No mapping found in DispatcherServlet with name 'Spring MVC Dispatcher Servlet' |
Mon contoller
Code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
@Controller
public class Contoller1 extends ARawContoller
{
@RequestMapping( value = "/contoller1.do" )
@Secured( {"RULE_TO_CHECK"})
public ModelAndView index() throws Exception
{
ModelAndView mav = new ModelAndView( " );
return mav;
} |
Configuration:
Code:
1 2 3 4 5
| <!-- SPRING - SECURITY -->
<sec:global-method-security
secured-annotations="enabled" jsr250-annotations="enabled">
</sec:global-method-security> |
quelqu'un a t il une idée il semble qu il y ait un conflit entre les 2 annotations
merci