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 application context?

392


What is oem odm?

373


Explain tasklet in spring batch.

413


Explain xml schema-based aspect implementation ?

392


How to get the servletcontext and servletconfig objects inside spring bean?

404


Can we autowire controller in spring?

386


How is spring different from spring boot? : Spring Boot

421


What is spring dto?

377


What is lazy connection?

394


What are beans in java spring?

364


What is aop proxy?

390


How do you autowire annotation in spring?

441


Categorize the different types of modules in spring framework.

370


What is webapplicationcontext?

373


What is microservice in spring?

359