例如,如何更改此picture中的响应正文
由码头提供动力。
客户端使用REST API时的响应主体。
对于500服务器错误类型,在web.xml中添加以下配置
<error-page>
<error-code>500</error-code>
<location>Custom error Page path</location>
</error-page>
https://www.eclipse.org/jetty/documentation/current/custom-error-pages.html参考: