Modified README

This commit is contained in:
Rachel Walker
2012-12-04 14:54:49 -08:00
parent a0a759dfde
commit 12d7cc7bfd

View File

@@ -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*)`. Annotate the custom exception class with `@Exception(*httpStatus*, *contentType*)`.
The defaults are The defaults are
`httpStatus = HttpStatus.INTERNAL_SERVER_ERROR` `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. Make sure to add `com.raychatter.common.annotation.AnnotationHandler` as a bean in your XML.
And that's it! And that's it!