更新时间:2023-01-15 12:09:07
此代码可以正常工作。您必须在课程级别或函数级别指定请求映射。
@RequestMapping(value = "/student/info", method = RequestMethod.PUT) public @ResponseBody String updateStudent(@RequestBody Student student){ LOG.info(student.toString()); return "ok"; }
如何在Springboot Restcontroller中使用PUT方法?
如何在RestController中使用基于JsonView的两个不同的getter进行序列化?
如何在IntelliJ IDEA中使用Gradle运行main方法?
如何在继承另一个类python的另一个类的类中使用一个方法
如何在Alamofire中使用PUT请求
如何在Observable.bindCallback方法中使用RXJS选择器函数?
如何在Win32项目,Visual C ++中使用MFC项目的方法?
如何在Kotlin编写的界面中使用默认方法的Java 8功能
如何在Spring Data仓库接口中使用Kotlin默认方法?
如何在Color.FromArgb方法中使用16位红色,16位绿色,16位蓝色和16位Alpha值