You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/11/01 08:06:14 UTC

[GitHub] [servicecomb-java-chassis] yanghao605 commented on issue #3444: ServiceComb-Java-Chassis 支持REST传输方式下的泛型请求参数和返回值,约束条件是否过于严厉

yanghao605 commented on issue #3444:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3444#issuecomment-1298186241

   服务端定义如下:
   ```
   @RequestMapping(value = "/post", method = RequestMethod.POST)
   public SimpleResponse<String> getResponse() {
     SimpleResponse<String> rsp = new SimpleResponse<String>("dasfdasf");
     return rsp;
   }
   ```
   SimpleResponse定义如下:
   ```
   package org.apache.test; //包路径
   
   public class SimpleResponse<T> {
     T value;
     public SimpleResponse(T val) {
        value = val;
     }
   }
   ```
   


-- 
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