zhengyangyong commented on a change in pull request #40: Using java chassis in 
spring boot dir translation
URL: 
https://github.com/apache/incubator-servicecomb-docs/pull/40#discussion_r211845512
 
 

 ##########
 File path: 
java-chassis-reference/en_US/using-java-chassis-in-spring-boot/web-application.md
 ##########
 @@ -1,29 +1,29 @@
-Web开发方式和JAVA应用方式的开发步骤基本类似。
+The development steps of the web development method and the JAVA application 
method are similar.
 
-本项目[代码示例](https://github.com/huaweicse/servicecomb-java-chassis-samples/tree/master/spring-boot-web)
+This project [code example] 
(https://github.com/huaweicse/servicecomb-java-chassis-samples/tree/master/spring-boot-web)
 
 
-主要有如下区别:
+There are mainly the following differences:
 
-* JAVA应用方式基于spring-boot-starter,而Web开发方式基于spring-boot-starter-web。
+* JAVA application is based on spring-boot-starter, and web development is 
based on spring-boot-starter-web.
 
-* 
JAVA应用方式依赖spring-boot-starter-provider,而Web开发方式依赖spring-boot-starter-transport。spring-boot-starter-web已经携带了hibernate-validator,不需要额外依赖。
+* JAVA application relies on spring-boot-starter-provider, while web 
development relies on spring-boot-starter-transport. Spring-boot-starter-web 
already carries hibernate-validator and does not require additional 
dependencies.
+
+* In the startup function, the web development method can be declared
 
-* 在启动函数中,Web开发方式可以通过声明
 
 ```
 @SpringBootApplication(exclude=DispatcherServletAutoConfiguration.class)
 ```
 
-来关闭org.springframework.web.servlet.DispatcherServlet,通过@EnableServiceComb会启用org.apache.servicecomb.transport.rest.servlet.RestServlet。虽然排除DispatcherServlet不是必须的,但是大多数场景一个微服务里面存在多个REST框架都不是很好的主意,会造成很多使用上的误解。
-
-* 
在microservice.yaml文件中通过配置项servicecomb.rest.servlet.urlPattern来指定RestServlet的URL根路径。并且配置项servicecomb.rest.address里面的监听端口,必须和tomcat监听的端口保持一致(默认是8080,可以通过application.yml中增加server.port修改)
+To close org.springframework.web.servlet.DispatcherServlet, enable 
org.apache.servicecomb.transport.rest.servlet.RestServlet via 
@EnableServiceComb. Although it is not necessary to exclude the 
DispatcherServlet, it is not a good idea to have multiple REST frameworks in a 
microservice in most scenarios, which will cause many misunderstandings in use.
 
 Review comment:
   misunderstandings -> confusion

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to