parent
b68f76c86e
commit
d955549037
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2022 the original author or authors.
|
* Copyright 2002-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -27,14 +27,11 @@ import org.springframework.http.ProblemDetail;
|
||||||
import org.springframework.web.ErrorResponse;
|
import org.springframework.web.ErrorResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* By default, when the DispatcherServlet can't find a handler for a request it
|
* Thrown when the {@link DispatcherServlet} can't find a handler for a request,
|
||||||
* sends a 404 response. However, if its property "throwExceptionIfNoHandlerFound"
|
* which may be handled with a configured {@link HandlerExceptionResolver}.
|
||||||
* is set to {@code true} this exception is raised and may be handled with
|
|
||||||
* a configured HandlerExceptionResolver.
|
|
||||||
*
|
*
|
||||||
* @author Brian Clozel
|
* @author Brian Clozel
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
* @see DispatcherServlet#setThrowExceptionIfNoHandlerFound(boolean)
|
|
||||||
* @see DispatcherServlet#noHandlerFound(HttpServletRequest, HttpServletResponse)
|
* @see DispatcherServlet#noHandlerFound(HttpServletRequest, HttpServletResponse)
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
|
|
Loading…
Reference in New Issue