java - CXF RS: How do I tell the application to use my custom ExceptionMapper? -
i found this documentation documents how use exceptionmapper
. doesn't provide information on how tell webapp should use it. how configure that?
you can in spring configuration file this:
<jaxrs:server id="foo" address="/v2"> <jaxrs:providers> <bean class="com.myexceptionmapper"/> </jaxrs:providers> </jaxrs:server>