spring mvc configure custom error pages

How to configure error page in spring

ErrorController.java package com.springdemo; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller @RequestMapping(“/”) public class ErrorController { @RequestMapping(value = “404”,method = RequestMethod.GET) public String Page404(ModelMap model) { return “404”; }…

Read More
Spring MVC cron scheduler

Spring MVC cron scheduler

During application development we require some task should be executed automatically based on particular time interval. for example for banking application credit card bill should be generated by 1st date…

Read More
Spring MVC download file example

Spring MVC Download File

This is example of download file from server without steaming. Example of Spring-MVC + File Download Technology Used: String 4.3.0 Maven 2.3.2 Tomcat 7 Java 8 IntelljIDEA 14 Project structure:…

Read More