diff --git a/README.md b/README.md index 61e0a4c..afe6c8a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ Under PROJECT/resources create a file called *error.template*. Inside this file, Annotate the custom exception class with `@Exception(*httpStatus*, *contentType*)`. The defaults are `httpStatus = HttpStatus.INTERNAL_SERVER_ERROR` -`contentType = MediaType.APPLICATION_XML_VALUE` +`contentType = MediaType.APPLICATION_XML_VALUE`. + Make sure to add `com.raychatter.common.annotation.AnnotationHandler` as a bean in your XML. And that's it!