I want to configure Spring to redirect all the requests to a specific Controller irrespective of the URL (length and parameters). How should I give the URL pattern / regular expression in the RequestMapping annotation. I tried using the below code, but it is not working. Any help in this regard is deeply appreciated.
@Controller @RequestMapping("/*") public class ServiceController { @RequestMapping( method = RequestMethod.GET, value = "*" ) public void getProjectList(HttpServletRequest httpServletRequest,Model model){ } }