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 2018/08/21 08:45:56 UTC

[GitHub] liubao68 closed pull request #38: update Packaging dir translation

liubao68 closed pull request #38: update Packaging dir translation
URL: https://github.com/apache/incubator-servicecomb-docs/pull/38
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/java-chassis-reference/en_US/packaging/standalone.md b/java-chassis-reference/en_US/packaging/standalone.md
index 9b0dc25..f9f0534 100644
--- a/java-chassis-reference/en_US/packaging/standalone.md
+++ b/java-chassis-reference/en_US/packaging/standalone.md
@@ -1,25 +1,25 @@
-## 概念阐述
+## Concept Description
 
-一个Standalone的容器,以简单的Main加载Spring启动,因为服务通常不需要Tomcat/JBoss等Web容器的特性,没必要用Web容器去加载服务。微框架提供了standalone部署运行模式,服务容器只是一个简单的Main方法,并加载一个简单的Spring容器,用于暴露服务。
+A Standalone container that loads Spring with a simple Main, because the service usually does not require the properties of a Web container such as Tomcat/JBoss, and there is no need to use the Web container to load the service. The microframework provides a standalone deployment run mode. The service container is just a simple Main method and loads a simple Spring container to expose the service.
 
-## 操作步骤
+## Operation steps
 
-* **步骤1** 编写Main函数,初始化日志和加载服务配置,内容如下:
+* **Step 1** Write the Main function, initialize the log and load the service configuration as follows:
 
 ```java
-import com.huawei.paas.foundation.common.utils.BeanUtils;
-import com.huawei.paas.foundation.common.utils.Log4jUtils;
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+
 public class MainServer {
 public static void main(String[] args) throws Exception {
- Log4jUtils.init(); # 日志初始化
- BeanUtils.init();  # Spring bean初始化
+ Log4jUtils.init(); # Log initialization
+ BeanUtils.init();  # Spring bean initialization
  }
 }
 ```
 
-* **步骤2** 运行MainServer即可启动该微服务进程,向外暴露服务。
-
-## 注意事项
+* **Step 2** Run the MainServer to start the microservice process and expose the service.
 
-如果使用的是rest网络通道,需要将pom中的transport改为使用cse-transport-rest-vertx包
+## Notes
 
+If you are using the rest network channel, you need to change the transport in the pom to use the cse-transport-rest-vertx package.
diff --git a/java-chassis-reference/en_US/packaging/web-container.md b/java-chassis-reference/en_US/packaging/web-container.md
index 7b11276..bd4e39e 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 just need to write few lines of code
 
-## 开发示例
+## 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.
 
+##
diff --git a/java-chassis-reference/zh_CN/packaging/standalone.md b/java-chassis-reference/zh_CN/packaging/standalone.md
index 9b0dc25..cff8b42 100644
--- a/java-chassis-reference/zh_CN/packaging/standalone.md
+++ b/java-chassis-reference/zh_CN/packaging/standalone.md
@@ -7,8 +7,8 @@
 * **步骤1** 编写Main函数,初始化日志和加载服务配置,内容如下:
 
 ```java
-import com.huawei.paas.foundation.common.utils.BeanUtils;
-import com.huawei.paas.foundation.common.utils.Log4jUtils;
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
 public class MainServer {
 public static void main(String[] args) throws Exception {
  Log4jUtils.init(); # 日志初始化


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services