Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 如何在包含文件和嵌套模型的邮递员中发送请求_Spring Boot_Model_Request_Postman_Multipart - Fatal编程技术网

Spring boot 如何在包含文件和嵌套模型的邮递员中发送请求

Spring boot 如何在包含文件和嵌套模型的邮递员中发送请求,spring-boot,model,request,postman,multipart,Spring Boot,Model,Request,Postman,Multipart,我有一个控制器,它接收这个请求体。我如何以邮递员的身份发送以下请求。有没有更好的方法包括一个文件和我的其他模型类,而不仅仅是将其作为请求参数传递 public String saveReferenceData(@RequestBody TestClass testClass){ // custom logic written return "done";

我有一个控制器,它接收这个请求体。我如何以邮递员的身份发送以下请求。有没有更好的方法包括一个文件和我的其他模型类,而不仅仅是将其作为请求参数传递

public String saveReferenceData(@RequestBody TestClass testClass){
    // custom logic written
    return "done";