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 cdi in spring?
How to upload file in spring mvc application?
What is dao class in spring?
What is the use of aop?
Why do we use @override annotation?
What is autowiring in spring? What are the autowiring modes?
Explain annotation-based (@aspectj based) aspect implementation?
Which injection is better in spring?
How a spring is formed?
Explain the main aop concepts and terminology.
What are the different types of spring bean auto wiring?
Briefly describe the 2 ways in which the class property can be used.