Announcement Announcement Module
Collapse
No announcement yet.
System wide Spring exception mapping to Http Status codes in Spring MVC 3.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • System wide Spring exception mapping to Http Status codes in Spring MVC 3.1

    Is there anyway to map Spring exceptions (Ex. JpaObjectRetrievalFailureException) to REST status code without using a controller specific @ExceptionHandler? I would like to configure that system wide.

    Thanks in advance.

  • #2
    I suggest take a look at the ResponseStatusExceptionResolver you probably want to make an extension to this resolver and make it configurable.

    Comment

    Working...
    X