[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2111: 单微服务的接口测试需要Mock,部分接口返回 201 返回码。但是在servicecomb中好像没办法设置返回码,400+的错误码可以用exception来处理,可是201这样的正常码怎么处理

2022-12-30 Thread GitBox
liubao68 commented on issue #2111: URL: https://github.com/apache/servicecomb-java-chassis/issues/2111#issuecomment-1367812094 close old issues, please feel free to submit a new one if the problem still exists. -- This is an automated message from the Apache Git Service. To respond to t

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2111: 单微服务的接口测试需要Mock,部分接口返回 201 返回码。但是在servicecomb中好像没办法设置返回码,400+的错误码可以用exception来处理,可是201这样的正常码怎么处理

2020-12-09 Thread GitBox
liubao68 commented on issue #2111: URL: https://github.com/apache/servicecomb-java-chassis/issues/2111#issuecomment-742181418 都调试到这么深入的环节了,可以继续跟踪一下。 这种情况的问题不是自己尝试下, 是解答不了你的。 This is an automated message from the Apache Git S

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2111: 单微服务的接口测试需要Mock,部分接口返回 201 返回码。但是在servicecomb中好像没办法设置返回码,400+的错误码可以用exception来处理,可是201这样的正常码怎么处理

2020-12-08 Thread GitBox
liubao68 commented on issue #2111: URL: https://github.com/apache/servicecomb-java-chassis/issues/2111#issuecomment-741581555 ``` public ResponseEntity responseEntity(InvocationContext c1, Date date) { HttpHeaders headers = new HttpHeaders(); headers.add("h1", "h1v " + c

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2111: 单微服务的接口测试需要Mock,部分接口返回 201 返回码。但是在servicecomb中好像没办法设置返回码,400+的错误码可以用exception来处理,可是201这样的正常码怎么处理

2020-12-08 Thread GitBox
liubao68 commented on issue #2111: URL: https://github.com/apache/servicecomb-java-chassis/issues/2111#issuecomment-741507434 看看这里 : https://docs.servicecomb.io/java-chassis/zh_CN/general-development/error-handling/ This is