You could use @RequestParam
annotation :
@Controller
@RequestMapping("/common")
public class CommonController {
public ModelAndView getInfo(@RequestParam("m") String param) throws Exception {
if("getInfo".equals(param)){
//your code
}
}
OR directly with @RequestMapping
@Controller
public class CommonController {
@RequestMapping(value = "/common", params = "m=getInfo")
public ModelAndView getInfo() throws Exception {
//your code here
}
}