Modified README
This commit is contained in:
@@ -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!
|
||||||
|
|||||||
Reference in New Issue
Block a user