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 sqlprovider?
Does spring boot use tomcat? : Spring Boot
What is the bean life cycle in spring bean factory container?
What is the use of applicationcontextaware in spring?
What is spring boot and spring mvc? : Spring Boot
What is @inject annotation in spring?
How do you explain dependency injection?
What is root context in spring?
Should controller be singleton?
What is lazy class?
Do we need web xml in spring boot? : Spring Boot
What is spring’s ioc container?