If you have configure the spring resource handlers but didn’t display correctly on the browser, try check the following configuration.
Read MoreSpring Security
This tutorial are talking about spring security base on servlet 3.1 with java-based configuration.
Read MoreSpring i18N
Register Local Resolver Spring will look for user register localResolver, if not found, spring will use configure AcceptHeaderLocaleResolver as default. […]
Read MoreExceptionHandler
User Define Exception We need to define the exception that to be handle by our own. For instance, a product […]
Read MoreSpring Upload File
Commons FileUpload multipart request process XML-based Java-based XML-based web.xml <servlet> <servlet-name>springmvc</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/mvc-config.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>springmvc</servlet-name> <url-pattern>/</url-pattern> […]
Read MoreSpring Tag, JSP Form Reference
Define Namespace and Taglib <!DOCTYPE html> <%@ page language=”java” contentType=”text/html; charset=UTF-8″ pageEncoding=”UTF-8″%> <%@ taglib uri=”http://www.springframework.org/tags” prefix=”spring” %> <%@ taglib uri=”http://www.springframework.org/tags/form” […]
Read MoreOpenSUSE install maven
The follow step is what I recently used to install maven in openSUSE.
Read MoreBean Validation
For spring mvc to enable form validation, follow the steps below.
Read More@DateTimeFormat
Java8 features can be replace with the following date library: java.util.date java.util.calendar joda-time
Read More