Package it.unisa.KryptoAuth.controller
Class ErrorPageController
java.lang.Object
it.unisa.KryptoAuth.controller.ErrorPageController
- All Implemented Interfaces:
org.springframework.boot.web.servlet.error.ErrorController
@Controller
public class ErrorPageController
extends Object
implements org.springframework.boot.web.servlet.error.ErrorController
Si occupa di gestire e di lanciare le pagine personalizzate
degli errori HTTP: 401, 404, 500.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleError
(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
-
Constructor Details
-
ErrorPageController
public ErrorPageController()
-
-
Method Details
-
handleError
@GetMapping("/error") public String handleError(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
-