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
Explain the types of advice in spring?
What do you mean by aspect oriented programming (aop)?
What is difference between singleton and prototype bean?
What is java spring framework?
What is a multipartresolver and when it’s used?
What are the different properties the metadata translates into to make up the bean definition?
What are the types of controller in spring?
What is @springbootapplication in spring boot? : Spring Boot
What are bean wiring and @autowired annotation?
What is the scope of bean in spring?
What is controller in spring mvc framework?
What is lazy class?
What is ioc container in spring?
What are spring boot starter projects? : Spring Boot
What is retention annotation?