Why SpringMVC Request method 'GET' not supported?

前端 未结 6 575
误落风尘
误落风尘 2020-12-01 05:34

I trying @RequestMapping(value = \"/test\", method = RequestMethod.POST) but is error

Code is

 @Controller
 public class HelloWordContr         


        
6条回答
  •  离开以前
    2020-12-01 05:48

    if You are using browser it default always works on get, u can work with postman tool,otherwise u can change it to getmapping.hope this will works

提交回复
热议问题