Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现这个文档记录了如何使用ExceptionMapper. 但它没有提供任何关于如何告诉 webapp 它应该使用它的信息。我该如何配置?
ExceptionMapper
您可以在 Spring 配置文件中执行此操作,如下所示:
<jaxrs:server id="foo" address="/v2"> <jaxrs:providers> <bean class="com.MyExceptionMapper"/> </jaxrs:providers> </jaxrs:server>