Removed not used field
@@ -9,7 +9,6 @@ import java.util.stream.Collectors;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
-import org.springframework.context.MessageSource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@@ -33,7 +32,6 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExcep
@Slf4j
public class CustomExceptionHandler extends ResponseEntityExceptionHandler {
private ErrorAttributes errorAttributes;
- private final MessageSource messageSource;
/**
* Method intercept exception {@link RuntimeException}.
