Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between constructor injection and setter injection?
What are benefits of spring framework?
What is dao layer in spring?
What is the syntax to add a bean in the spring application?
Why we use @autowired in spring?
Why do we need view resolver in spring mvc and what is an internal view resolver in spring?
What are different types of autowire types?
What is the use of @service annotation?
Are singleton beans in spring a regular singleton object?
What is spring aop used for?
What is use of @qualifier in spring?
Explain what is spring mvc?
Is singleton thread safe in spring?
What is bean factory in spring?
How important is the spring bean configuration file?