Date Parameter in Spring MVC Controller
Need to pass a date as a java.util.Date instance in a Spring MVC controller action? Then you have come to the right place. You might have tried the below approach and encountered a good old 404 Not Found error. @Controller public class CompanyController { @RequestMapping("/company/added-since/{since}") public String showAddedSince(@PathVariable("since") Date since) { return "companies-added-since"; } }… read more