Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to handle exceptions in spring mvc framework?

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


Please Help Members By Posting Answers For Below Questions

What is difference between bean and pojo?

498


What is a spring transaction?

454


What is spring design pattern?

479


Is spring only for java?

482


What is spring ioc definition?

480


Explain inversion of control and dependency injection through a simple example.

456


What is the difference between spring singleton bean scope and singleton design pattern?

445


What do you mean by beanfactory in spring?

462


What are some of the important spring annotations you have used?

454


Is @override annotation mandatory?

469


Why is spring framework used?

468


What is the function of annotation @responsebody?

468


What does a simple spring application contain?

525


What is the use of @repository in spring?

483


What is the difference between doget () dopost () and service () methods?

450