Modified README

This commit is contained in:
Rachel Walker
2012-12-04 14:57:32 -08:00
parent 12d7cc7bfd
commit 4ee704713b

View File

@@ -13,6 +13,7 @@ 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`.
The custom message is taken from the custom annotation class itself, so any parameters you'd like to insert need to be handled there.
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!