com.minlia.rocket.problem.ErrorAttributes Maven / Gradle / Ivy
package com.minlia.rocket.problem;
import java.util.Map;
import org.springframework.boot.web.servlet.error.DefaultErrorAttributes;
import org.springframework.web.context.request.WebRequest;
public class ErrorAttributes extends DefaultErrorAttributes {
@Override
public Map getErrorAttributes(WebRequest webRequest, boolean includeStackTrace) {
Map errorAttributes = super.getErrorAttributes(webRequest, includeStackTrace);
// errorAttributes.remove("message");
return errorAttributes;
}
}