Friday, July 27, 2012

Spring Web MVC and ErrorHandler

Spring Web MVC and ErrorHandler

i think i'm a bit thick but one of the things that kept screwing up my use of an overriding ExceptionHandler in Spring Web MVC was where i was setting it.  don't set it with your mvc application context but set it with the ContextLoaderListener one, this way it's loaded before the DispatcherServlet and can be used, otherwise it loads the default.

simple tip, but one that had me stumped... not that i should be surprised

No comments:

Post a Comment