@Controller public class HomeController extends Object
Modifier and Type | Field and Description |
---|---|
private ExceptionService |
exceptionService |
private static Logger |
log |
private UserService |
userService |
Constructor and Description |
---|
HomeController() |
Modifier and Type | Method and Description |
---|---|
void |
exceptions(Model model,
HttpSession session) |
void |
index(Model model) |
private boolean |
isThrowingExceptions(HttpSession session) |
private boolean |
toggleExceptions(HttpSession session)
keep an exceptionsToggle in the user's session
|
String |
toggleExceptions(Model model,
HttpSession session) |
void |
users(Model model) |
@Autowired private ExceptionService exceptionService
@Autowired private UserService userService
public HomeController()
@RequestMapping(value="/exceptions", method=GET) public void exceptions(Model model, HttpSession session)
@RequestMapping(value="/exceptions", method=POST) public String toggleExceptions(Model model, HttpSession session)
private boolean toggleExceptions(HttpSession session)
session
- private boolean isThrowingExceptions(HttpSession session)
session
- Copyright © 2016. All rights reserved.