Commit 04e34372 authored by liaozan's avatar liaozan 🏀

Return 404 when not found

parent 63ac251e
......@@ -72,6 +72,7 @@ public class GlobalExceptionHandler {
return loggingThenBuildResponse(ex, SERVER_ERROR);
}
@ResponseStatus(HttpStatus.NOT_FOUND)
@ExceptionHandler(NoHandlerFoundException.class)
public Object handleNoHandlerFoundException(NoHandlerFoundException ex) {
return loggingThenBuildResponse(ex, PARAM_INVALID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment