You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by jb...@apache.org on 2017/12/12 07:06:00 UTC

[42/51] incubator-servicecomb-website git commit: Add FAQ

Add FAQ

Signed-off-by: MabinGo <bi...@huawei.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/commit/bea4205e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/tree/bea4205e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/diff/bea4205e

Branch: refs/heads/asf-site
Commit: bea4205e30184928809d57f30fa5dc1fc2604532
Parents: 04bd51d
Author: MabinGo <bi...@huawei.com>
Authored: Mon Dec 4 18:00:51 2017 +0800
Committer: Willem Jiang <ji...@huawei.com>
Committed: Thu Dec 7 14:18:29 2017 +0800

----------------------------------------------------------------------
 _faqs/cn/faq.md | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/bea4205e/_faqs/cn/faq.md
----------------------------------------------------------------------
diff --git a/_faqs/cn/faq.md b/_faqs/cn/faq.md
old mode 100644
new mode 100755
index b33139c..38b28e8
--- a/_faqs/cn/faq.md
+++ b/_faqs/cn/faq.md
@@ -486,3 +486,39 @@ redirect_from:
 * **Q: 如果服务端是链式调用,即类似a->b->c,那设置了qps 流控会不会造成水管粗细不均的事情?**
 
    A: 一般采取的模式是先测量再设置。qps设置最终是结合整体业务需求来进行调控的,而不是就单个节点来进行设置。
+
+* **Q: 通过cse://serviceName/appPath调用服务失败,报错:java.lang.Error:not support def type:class io.swagger.models.properties xxx**
+
+   A: 检查consumer和provider依赖的java-chassis版本是否一致,如果不一致请修改并使用较新版本。
+
+* **Q: 发送rest请求时,出现如下报错:Bad Request,description:http:request body too large**
+
+   A: 检查Service Center是否老版本,如果是,则升级到最新版本。
+
+* **Q: 如何在Json序列化忽略Bean中的指定属性**
+
+   A: 使用@JsonIgnore注解标记需要忽略的属性,注意修改完成后需重启Service Center。例如:
+
+  ```java
+  public class OutputForTest{
+  @JsonIgnore
+  private String outputId = null;
+  private String inputId = null;
+  ...
+  }
+  ```
+
+* **Q: 如何在用户自定义的handler中获取header中某个字段的值**
+
+   A: 在用户自定义的handler使用@ApiImplicitParams注解声明,使用invocation.getArgs()获取header的值。例如:
+
+  ```java
+  public class MyHandler implements Handler {
+    @ApiImplicitParams({@ApiImplicitParam(name = "tester", dataType = "string", paramType = "header")})
+    @Override
+    public void handle(Invocation invocation, AsyncResponse asyncResp) throws Exception {
+      Object[] args = invocation.getArgs();
+      System.out.println(args);
+    }
+  }
+  ```
\ No newline at end of file