我正在使用此函数获取请求参数spring3 mvc而我的网址是
本地主机:8080/karmaFriend/register/abc/wq/abc@abc.com
@RequestMapping(value = "/register/{username}/{password}/{email}", method = RequestMethod.GET)
public @ResponseBody ResponseMsg getUserInJSON(@PathVariable String username, @PathVariable String password, @PathVariable String email) {
ResponseMsg responseMsg = CommonUtils.checkParam(username, password, email);
if(responseMsg.getStatus().equalsIgnoreCase("True"))
responseMsg = userService.registerUser(username, password, email);
return responseMsg;
}
它运作良好,但如果我改变这样的网址 本地主机:8080/karmaFriend/register/abc//abc@abc.com
那么它不会调用那个函数......有没有其他方法来调用相同的函数?