You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "hwzhu-hoop (via GitHub)" <gi...@apache.org> on 2025/03/18 07:20:55 UTC

[I] [QUESTION] - Question Title CSE 3.X不支持multipart/form-data类型的RequestMapping了吗 [servicecomb-java-chassis]

hwzhu-hoop opened a new issue, #4750:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4750

   ### Steps to reproduce (if applicable)
   
   _No response_
   
   ### What have you tried so far?
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [QUESTION] - CSE 3.X不支持multipart/form-data类型的RequestMapping了吗 [servicecomb-java-chassis]

Posted by "hwzhu-hoop (via GitHub)" <gi...@apache.org>.
hwzhu-hoop commented on issue #4750:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4750#issuecomment-2756315711

   https://servicecomb.apache.org/references/java-chassis/2.x/zh_CN/build-consumer/develop-consumer-using-rpc.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [QUESTION] - CSE 3.X不支持multipart/form-data类型的RequestMapping了吗 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4750:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4750#issuecomment-2731978801

   可以参考下: https://servicecomb.apache.org/references/java-chassis/zh_CN/build-provider/basics.html
   
   你描述的场景好像都不在这个范围内,建议提供下具体的代码写法。 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [QUESTION] - CSE 3.X不支持multipart/form-data类型的RequestMapping了吗 [servicecomb-java-chassis]

Posted by "hwzhu-hoop (via GitHub)" <gi...@apache.org>.
hwzhu-hoop commented on issue #4750:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4750#issuecomment-2732981916

   `
   import io.swagger.annotations.Api;
   import io.swagger.v3.oas.annotations.Parameter;
   import jakarta.servlet.http.Part;
   import org.apache.servicecomb.provider.rest.common.RestSchema;
   import org.springframework.http.MediaType;
   import org.springframework.web.bind.annotation.PostMapping;
   import org.springframework.web.bind.annotation.RequestPart;
   
   @RestSchema(schemaId = "test")
   @Api(value = "demo data controller", tags = "test")
   public class StreamController2 {
       
       @PostMapping(value = "/stream", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.MULTIPART_FORM_DATA_VALUE)
       public void stream(@RequestPart @Parameter Part part) {
   
       }
   
   }
   `
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [QUESTION] - CSE 3.X不支持multipart/form-data类型的RequestMapping了吗 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4750:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4750#issuecomment-2733142328

   类上使用 `@RestSchema`, 必须同时使用 `@RequestMapping`. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org