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

Explain the types of advice in spring?

370


What do you mean by aspect oriented programming (aop)?

408


What is difference between singleton and prototype bean?

443


What is java spring framework?

435


What is a multipartresolver and when it’s used?

479


What are the different properties the metadata translates into to make up the bean definition?

373


What are the types of controller in spring?

549


What is @springbootapplication in spring boot? : Spring Boot

431


What are bean wiring and @autowired annotation?

487


What is the scope of bean in spring?

432


What is controller in spring mvc framework?

398


What is lazy class?

408


What is ioc container in spring?

419


What are spring boot starter projects? : Spring Boot

406


What is retention annotation?

468