Request method ‘POST‘ not supported
org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not supported
突然遇到这么个问题,检查前端,检查后台,检查参数,好吧,都没什么问题;
没办法先把参数屏蔽掉,看是不是参数影响的,结果还是没用;
本来是PostMapping直接修改成requestMapping然后再给个methed=RequestMethod.POST,验证是否是写法的问题,没用。。。难搞哦,直接将method取掉,让全部都支持,还是不行;
嗯。。。。平常心平常心,开始检查页面发现请求url跟写的controller根本对不上,不想说什么了。