影院网站怎么做,w网站怎么做,京东优惠劵网站怎么做,网站alexa排名方法有问题。
用Post发的请求#xff0c;然后用Put接收的。
大家也可以看看是不是有这种问题
bodyh1HTTP状态 405 - 方法不允许/h1hr classline /pb类型/b 状态报告/ppb消息…方法有问题。
用Post发的请求然后用Put接收的。
大家也可以看看是不是有这种问题
bodyh1HTTP状态 405 - 方法不允许/h1hr classline /pb类型/b 状态报告/ppb消息/b Request method #39;POST#39; not supported/ppb描述/b 请求行中接收的方法由源服务器知道但目标资源不支持/phr classline /h3Apache Tomcat/8.5.96/h3
/body发送 发送用的Post
接收
Controller
public class FurnController {// required false 表示自动装配找不到不会报错直接设置为NullAutowired(required false)private FurnService furnService;PutMapping(/update) // 修改一般是用post请求 ResponseBodypublic Msg update(RequestBody Furn furn) {furnService.update(furn);return Msg.success();}
}
上面这里PutMapping(“/update”) // 修改一般是用post请求写错了。
应该是用的Post
愚蠢