You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2018/08/21 08:45:58 UTC

[incubator-servicecomb-docs] 02/04: update java-chassis-reference/en_US/packaging/web-container.md

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-docs.git

commit 750e97b06f056d0a20806a00aac9c5f4d89ad6f6
Author: DeanLee <li...@huawei.com>
AuthorDate: Mon Aug 20 14:50:19 2018 +0800

    update java-chassis-reference/en_US/packaging/web-container.md
---
 .../en_US/packaging/web-container.md                | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/java-chassis-reference/en_US/packaging/web-container.md b/java-chassis-reference/en_US/packaging/web-container.md
index 7b11276..63acefa 100644
--- a/java-chassis-reference/en_US/packaging/web-container.md
+++ b/java-chassis-reference/en_US/packaging/web-container.md
@@ -1,20 +1,17 @@
-## 概念阐述
+## Concept Description
 
-如果需要将该微服务加载到web容器中启动运行时,需要新建一个servlet工程包装一下,该servlet工程,根据需要,可以不写或写少量的引导代码即可。
+If you need to load the microservice into the web container to start the runtime, you need to create a new servlet project wrapper, the servlet project, you can not write or write a small amount of boot code as needed.
 
-## 开发示例
+## Development example
 
-参考“开发服务提供者” -&gt; “通信协议" -&gt; "REST over Servlet"章节。
+Refer to the "Development Service Provider" -> "Communication Protocol" -> "REST over Servlet" chapter.
 
-## 注意事项
+## Notes
 
-Restful调用应该与web容器中其他静态资源调用(比如html、js等等)隔离开来,所以webroot后一段应该还有一层关键字,比如上面web.xml中举的例子(/test/rest)中的rest。
-
-以tomcat为例,默认每个war包都有不同的webroot,这个webroot需要是basePath的前缀,比如webroot为test,则该微服务所有的契约都必须以/test打头。
-
-当微服务加载在web容器中,并直接使用web容器开的http、https端口时,因为是使用的web容器的通信通道,所以需要满足web容器的规则。
-
-## 
+Restful calls should be isolated from other static resource calls (such as html, js, etc.) in the web container, so there should be a layer of keywords in the post after webroot, such as the example in web.xml above (/test/rest) In the rest.
 
+Take tomcat as an example. By default, each war package has a different webroot. This webroot needs to be a basePath prefix. For example, if webroot is testing, all the contracts of the microservice must start with /test.
 
+When the microservice is loaded in the web container and directly uses the http and https ports opened by the web container, it is necessary to satisfy the rules of the web container because it is the communication channel of the web container used.
 
+##