-
Spring MVC @ExceptionHandler Example
In this tutorial, we show you how to do exception handling in Spring MVC frameworks. Normally, we use @ExceptionHandler to decide which “view” should be returned back if certain exception is raised.
Date: 2019-08-18 View: 1520
-
java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.spi.JtaPlatform
Spring 3.2.x + Hibernate 4.3.x integration, hits JtaPlatform ClassNotFoundException, search the project classpath, find out that JtaPlatform is at different package?
Date: 2019-08-17 View: 1520
-
Spring MVC Catch the exceptions thrown by view page
Here’s the scenario, the controller returns a ModelAndView, and an exception is thrown while rendering the JSP view page, reason behind is one of message code is not found.
Date: 2019-08-17 View: 1520
-
Java Custom Exception Examples
In Java, there are two types of exceptions – checked and unchecked exception. Here’s the summary :
Date: 2019-08-17 View: 1520
-
Spring MVC How to handle max upload size exceeded exception
In Spring, you can declare a @ControllerAdvice to catch the ugly max upload size exceeded exception like this :
Date: 2019-08-11 View: 1520
-
Spring @ExceptionHandler and RedirectAttributes
Since Spring 4.3.5 and 5.0 M4, it supports RedirectAttributes argument in the @ExceptionHandler method.
Date: 2019-08-11 View: 1520