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


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

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

 
   @RequestMapping(value = "/register" , method = RequestMethod.GET) public String toRegister(){ return "register"; }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM