Powered by CloudFoundry

Exceptions Demo 3

Using Simple Mapping Exception Resolver



The exceptions below show the use of a SimpleMappingExceptionResolver - the oldest way of handling exceptions in Spring dating back to V1 and still commonly used. It is equivalent to using a ControllerAdvice - your choice.

To fully understand this demo, review the output in the server (console) log as you click the links below.


Demo 4: No Handler. For comparison, the same exceptions with no Simple Mapping Exception Resolver.