0

パラメータメソッドの解決に次のコントローラーを使用しています。

@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=..... で機能させるにはどうすればよいですか?

4

1 に答える 1