【发布时间】:2016-06-09 14:16:32
【问题描述】:
Jersey 的默认异常处理是什么(当未提供 ExceptionMapper 时)?
例子:
@GET
@Path("/rest")
public String rest() {
throw new RuntimeException("Wonder what would happen...");
}
结果会是什么? HTTP 状态和内容会返回什么?
【问题讨论】:
-
为什么要问什么时候可以尝试?
-
这叫知识共享。问也很重要。让其他人有机会回答...