How to handle exceptions in spring mvc framework?
Answer / nashiinformaticssolutions
There are two methods for managing exceptions in Spring MVC:
Exception handler method: The @ExceptionHandler annotation type is used to annotate a method to handle exceptions in this type of exception handling.
XML Configuration: The exception can be mapped by the user using the Simple Mapping Exception Resolver bean in the Spring application file.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is wiring in spring?
Are singleton beans in spring a regular singleton object?
Why spring cloud is required?
Which are the ioc containers in spring?
What is spring boot rowmapper? : Spring Boot
What is classpathxmlapplicationcontext?
How can beans be made singleton or prototype?
What is dao layer in spring boot?
Why do we need spring jdbctemplate?
What is difference between @pathparam and @pathvariable?
How does dependency injection work in spring?
What is spring ioc and di?