@Controller public class ExampleController extends Object
| Constructor and Description |
|---|
ExampleController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
aboutMe(Principal principal) |
org.springframework.web.servlet.ModelAndView |
adminsOnly() |
@PreAuthorize(value="isAuthenticated()")
@RequestMapping(value="/about_me",
method=GET)
public org.springframework.web.servlet.ModelAndView aboutMe(Principal principal)
throws Exception
Exception@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/admin",
method=GET)
public org.springframework.web.servlet.ModelAndView adminsOnly()
Copyright © 2013. All Rights Reserved.