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

@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请求处理的方式

你可能感兴趣的:(Spring技术)