THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
A simple text error message can also be optionally reported, by setting an 'addMessageToResponse' property to 'true', example:
Code Block | ||
---|---|---|
| ||
<bean id="exceptionMapper" class="org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper"> <property name="addMessageToResponse" value="true" /> </bean> |
Note that the custom WebApplicationException mapper, if registered, will be preferred to the default one.
...