SpringMVC使用POST方法传递数据,却出现Request method 'GET' not supported?

转自:https://segmentfault.com/q/1010000011245770

问题:没有使用get获取当前页面
解决方案:

 
   @RequestMapping(value = "/register" , method = RequestMethod.GET)
    public String toRegister(){
        return  "register";
    }
原文地址:https://www.cnblogs.com/sharpest/p/8674831.html