是。JAX-
RS具有ExceptionMappers的概念。您可以创建自己的ExceptionMapper接口,以将任何异常映射到响应。有关更多信息,请参见:https
:
//jersey.github.io/documentation/latest/representations.html#d0e6352

是。JAX-
RS具有ExceptionMappers的概念。您可以创建自己的ExceptionMapper接口,以将任何异常映射到响应。有关更多信息,请参见:https
:
//jersey.github.io/documentation/latest/representations.html#d0e6352