SpringMVC当类与方法的RequestMapping皆为空时报错问题

来源:互联网 发布:程序员新西兰离岸offer 编辑:程序博客网 时间:2024/06/05 04:37
@Controller@RequestMapping(value="")public class TestController {@RequestMapping(value="",method={RequestMethod.POST,RequestMethod.GET})    public ModelAndView testInfoSubmitGet(HttpServletRequest request, HttpServletResponse response){

当方法与类的RequestMapping皆为空时,jetty下执行项目post请求会302自主转向Get请求处理的方式

1 0
原创粉丝点击