Spring MVC - How to handle errors from a controller?
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh13w8HAihAnAQpDttNdBt41zZJCZhM45NPW7Izd8uNutnGJt_2uL6E2dWMVU4DVL76ibrewhwJFgFc8q5jbIjS3goz9K5Nd4wrgMFzmbDX7p3ghXQF-l17FIUwo2G1D9vrBBrhsXDkLXs/s1600/springlogo.png)
In a web application, it is very important to handle errors. Proper error handling would protect the application from several vulnerabilities, including Security Misconfiguration . In this post, you will see how you can handle exceptions that arise out of a Spring MVC based application.