我想使用相同的http方法重定向到另一个请求:
@RequestMapping(value = "first", method = RequestMethod.GET/POST/PUT/DELETE)
public String first(){
return "redirect:second";
}
@RequestMapping(value = "second", method = RequestMethod.GET/POST/PUT/DELETE)
public String second(){
// do something
}
但我用GET方法找到了所有重定向请求,有没有解决办法?