Spring Boot - Exception Handling
Consider this custom exception handler class:
@ControllerAdvice
public class CustomExceptionHandler extends ResponseEntityExceptionHandler {
@ExceptionHandler(NullPointerException.class)
public ResponseEntity
If a NullPointerException occurs, what will be the HTTP status code returned?