【发布时间】:2015-05-20 07:50:57
【问题描述】:
目前spring boot的错误响应包含如下标准内容:
{
"timestamp" : 1426615606,
"exception" : "org.springframework.web.bind.MissingServletRequestParameterException",
"status" : 400,
"error" : "Bad Request",
"path" : "/welcome",
"message" : "Required String parameter 'name' is not present"
}
我正在寻找一种方法来摆脱响应中的“异常”属性。有没有办法做到这一点?
【问题讨论】:
标签: json spring rest spring-boot