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 |
How many types of autowiring are there in spring?
What is cglib in spring?
What is spring boot jpa? : Spring Boot
Where is spring aop used?
How can you use spring to resolve collaborators for your bean?
What is the difference between @requestbody and @requestparam?
What is the use of @repository in spring?
Can we learn spring boot without knowing spring? : Spring Boot
What are the important topics in spring?
What is pointcut expression?
What companies use spring boot? : Spring Boot
What is repository pattern?