|
|
|
@ -38,6 +38,46 @@ Spring Cloud 使用 Maven 来构建,最快的使用方式是将本项目clone
|
|
|
|
|
|
|
|
|
|
## 如何使用
|
|
|
|
|
|
|
|
|
|
### 如何引入依赖
|
|
|
|
|
项目已经发布了第一个版本,版本 0.2.0.RELEASE 对应的是 Spring Boot 2.x 版本,版本 0.1.0.RELEASE 对应的是 Spring Boot 1.x 版本。
|
|
|
|
|
|
|
|
|
|
如果需要使用已发布的版本,在 `dependencyManagement` 中添加如下配置。
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
|
|
|
<version>0.2.0.REALEASE</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
然后再 `dependencies` 中添加自己所需使用的依赖即可使用。
|
|
|
|
|
|
|
|
|
|
如果您想体验最新的 BUILD-SNAPSHOT 的新功能,则可以将版本换成最新的版本,但是需要在 pom.xml 中配置 Spring BUILDSNAPSHOT 仓库,**注意: SNAPSHOT 版本随时可能更新**
|
|
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>spring-snapshot</id>
|
|
|
|
|
<name>Spring Snapshot Repository</name>
|
|
|
|
|
<url>https://repo.spring.io/snapshot</url>
|
|
|
|
|
<snapshots>
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
</snapshots>
|
|
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Reference Doc
|
|
|
|
|
|
|
|
|
|
[文档地址](https://github.com/spring-cloud-incubator/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-docs/src/main/asciidoc-zh)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 演示 Demo
|
|
|
|
|
|
|
|
|
|
为了演示如何使用,Spring Cloud Alibaba 项目包含了一个子模块`spring-cloud-alibaba-examples`。此模块中提供了演示用的 example ,您可以阅读对应的 example 工程下的 readme 文档,根据里面的步骤来体验。
|
|
|
|
|
|
|
|
|
|
Example 列表:
|
|
|
|
|