liubao created SCB-1896:
---------------------------

             Summary: improve demo test case for testing http headers
                 Key: SCB-1896
                 URL: https://issues.apache.org/jira/browse/SCB-1896
             Project: Apache ServiceComb
          Issue Type: Improvement
            Reporter: liubao
            Assignee: liubao
             Fix For: java-chassis-2.1.0


response type is not relate to actual one
{code:java}
@ApiResponse(code = 200, response = User.class, message = "")
@ResponseHeaders({@ResponseHeader(name = "h1", response = String.class),
 @ResponseHeader(name = "h2", response = String.class)})
 @RequestMapping(path = "/cseResponse", method = RequestMethod.GET)
 public Response cseResponse(InvocationContext c1) {
 Response response = Response.createSuccess(Status.ACCEPTED, new User());{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to