You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2017/12/22 03:09:27 UTC
[incubator-servicecomb-website] 04/05: add section of how to import
the java-chassis-dependency
This is an automated email from the ASF dual-hosted git repository.
ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git
commit 9fe81e628f28fe7c2b31a9931c9a69e7ff0aeb99
Author: xuhui187 <xu...@163.com>
AuthorDate: Tue Dec 19 19:51:10 2017 +0800
add section of how to import the java-chassis-dependency
---
_docs/cn/quick-start-bmi.md | 23 +++++++++++++++++++++++
_docs/quick-start-bmi.md | 23 +++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/_docs/cn/quick-start-bmi.md b/_docs/cn/quick-start-bmi.md
index 3a72caa..ada079e 100644
--- a/_docs/cn/quick-start-bmi.md
+++ b/_docs/cn/quick-start-bmi.md
@@ -18,6 +18,29 @@ last_modified_at: 2017-09-04T10:01:43-04:00
* **体质指数界面**:提供用户界面及网关服务。
+在开始前,需要先在服务的父工程中添加以下依赖项:
+```java
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>io.servicecomb</groupId>
+ <artifactId>java-chassis-dependencies</artifactId>
+ <version>0.5.0</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ </dependency>
+ </dependencies>
+```
+**注意**: `java-chassis-dependencies` 这个依赖是以pom的形式导入来统一项目中的依赖项的版本管理。
+
下面将对这两个微服务的实现进行介绍,其代码已托管于[github](https://github.com/ServiceComb/ServiceComb-Java-Chassis/tree/master/samples/bmi)上。
### 体质指数计算器实现
体质指数计算器提供运算服务,其实现分为三部分:
diff --git a/_docs/quick-start-bmi.md b/_docs/quick-start-bmi.md
index e1f4622..e5ec9f4 100644
--- a/_docs/quick-start-bmi.md
+++ b/_docs/quick-start-bmi.md
@@ -18,6 +18,29 @@ The workflow of BMI application have been introduced in [Quick start](/docs/quic
- **Web service**:provides both user interface and gateway service.
+Before we start, we need to add some common dependencies in the parent project of the services'.
+```java
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>io.servicecomb</groupId>
+ <artifactId>java-chassis-dependencies</artifactId>
+ <version>0.5.0</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ </dependency>
+ </dependencies>
+```
+**Notice**: The `java-chassis-dependencies` is imported as pom to unify version management of dependencies.
+
Now we will introduce the detailed implementation of these two microservices. The full code is on [github](https://github.com/ServiceComb/ServiceComb-Java-Chassis/tree/master/samples/bmi).
### Implementation of calculator
The calculator service provides capability of calculating BMI. It contains three parts:
--
To stop receiving notification emails like this one, please contact
"commits@servicecomb.apache.org" <co...@servicecomb.apache.org>.