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 difference between bean and pojo?
What is a spring transaction?
What is spring design pattern?
Is spring only for java?
What is spring ioc definition?
Explain inversion of control and dependency injection through a simple example.
What is the difference between spring singleton bean scope and singleton design pattern?
What do you mean by beanfactory in spring?
What are some of the important spring annotations you have used?
Is @override annotation mandatory?
Why is spring framework used?
What is the function of annotation @responsebody?
What does a simple spring application contain?
What is the use of @repository in spring?
What is the difference between doget () dopost () and service () methods?