@Test public void login() { assertEquals("/login", new AccessController().login()); }
@RequestMapping(value="/login", method=RequestMethod.GET) @PreAuthorize("permitAll") public String login() { return "/login"; }
AccessController { @RequestMapping(value="/login", method=RequestMethod.GET) @PreAuthorize("permitAll") public String login() { return "/login"; } }
AccessController { @RequestMapping(value="/login", method=RequestMethod.GET) @PreAuthorize("permitAll") public String login() { return "/login"; }  }
AccessController { @RequestMapping(value="/login", method=RequestMethod.GET) @PreAuthorize("permitAll") public String login() { return "/login"; }  @RequestMapping(value="/login", method=RequestMethod.GET) @PreAuthorize("permitAll") String login(); @RequestMapping(value="/login/error", method=RequestMethod.GET) @PreAuthorize("permitAll") String loginError(HttpSession session, Model model); @RequestMapping(value="/login/forbidden", method=RequestMethod.GET) @PreAuthorize("permitAll") String loginForbidden(HttpServletRequest request, Model model); }
AccessController { @RequestMapping(value="/login", method=RequestMethod.GET) @PreAuthorize("permitAll") public String login() { return "/login"; }  @RequestMapping(value="/login", method=RequestMethod.GET) @PreAuthorize("permitAll") String login(); @RequestMapping(value="/login/error", method=RequestMethod.GET) @PreAuthorize("permitAll") String loginError(HttpSession session, Model model); @RequestMapping(value="/login/forbidden", method=RequestMethod.GET) @PreAuthorize("permitAll") String loginForbidden(HttpServletRequest request, Model model);  }