From 6bc5bff45ed1cce51ba526341bcbb0086607da85 Mon Sep 17 00:00:00 2001 From: Rachel Walker Date: Mon, 3 Dec 2012 17:25:18 -0800 Subject: [PATCH] Reformatted README file --- README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3122ecc..fc14929 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,16 @@ ### An annotation for the Spring framework to handle HTTP responses for custom exceptions. ## How to use spring-restful-exception-handler -Under $PROJECT/resources create a file called *error.template*. Inside this file, place the formatted error template you want to return when a custom exception is thrown. If no custom template is given, the following default template will be used: - - - %s - -Annotate the custom exception class with - @Exception(*httpStatus*, *contentType*) +Under PROJECT/resources create a file called *error.template*. Inside this file, place the formatted error template you want to return when a custom exception is thrown. If no custom template is given, the following default template will be used: +`` +`` +`%s` +`` +Annotate the custom exception class with `@Exception(*httpStatus*, *contentType*)`. The defaults are - httpStatus = HttpStatus.INTERNAL_SERVER_ERROR - contentType = MediaType.APPLICATION_XML_VALUE -Make sure to add *com.raychatter.common.annotation.AnnotationHandler* as a bean in your XML. +`httpStatus = HttpStatus.INTERNAL_SERVER_ERROR` +`contentType = MediaType.APPLICATION_XML_VALUE` +Make sure to add `com.raychatter.common.annotation.AnnotationHandler` as a bean in your XML. And that's it!