Class NotFoundController
java.lang.Object
com.erudika.para.server.controllers.NotFoundController
A controller that handles 404 Not Found errors.
- Author:
- Alex Bogdanovski [[email protected]]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> get(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.springframework.ui.Model model) Handles GET requests for the 404 page.
-
Constructor Details
-
NotFoundController
public NotFoundController()No-args constructor.
-
-
Method Details
-
get
@GetMapping("/not-found") public org.springframework.http.ResponseEntity<?> get(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.springframework.ui.Model model) Handles GET requests for the 404 page.- Parameters:
req- requestres- responsemodel- model- Returns:
- response
-