Podcast
Questions and Answers
What is the default setting for the NoHandlerFoundException when no handler is found for a request?
What is the default setting for the NoHandlerFoundException when no handler is found for a request?
- True
- False (correct)
- DispatcherServlet
- 404 (NOT_FOUND
What happens when the DispatcherServlet does not find a handler for a request?
What happens when the DispatcherServlet does not find a handler for a request?
- It throws a NoHandlerFoundException
- It sets the response status to 404 (NOT_FOUND (correct)
- It forwards the request to the default servlet
- It raises an exception
What is the effect of configuring default servlet handling?
What is the effect of configuring default servlet handling?
- It prevents the DispatcherServlet from raising an exception
- It prevents unresolved requests from being forwarded to the default servlet
- It sets the response status to 404 (NOT_FOUND (correct)
- It ensures the NoHandlerFoundException is thrown
Flashcards are hidden until you start studying