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 are the important beans lifecycle methods?
What do you mean by pointcut?
What is the point of the factory pattern?
What is a spring transaction?
What is @postconstruct in spring boot? : Spring Boot
What is spring framework?
What are advices in spring?
Are spring components singletons?
What are spring jdbc templates used for?
List some of the benefits of ioc.
What is beanpostprocessor in spring?
Why should I use dependency injection?