我正在使用以下控制器进行参数方法解析。
@Controller
@RequestMapping("/customer")
public class CustomerController extends MultiActionController{
@RequestMapping(params = "action=add")
public ModelAndView add(HttpServletRequest request,
HttpServletResponse response) throws Exception {
return new ModelAndView("CustomerPage", "msg","add() method");
}
....
....
}
但是,这使得以下格式的 url 起作用:
http://localhost:7001/begin-mvc/customer/?action=update
我如何使它适用于 /customer/*.htm?action=.....