tanghc 5 years ago
parent 3f7bd7f24d
commit 7adc6245a9
  1. 20
      doc/docs/files/10011_项目接入到SOP.md

@ -2,7 +2,23 @@
以springboot项目为例,springmvc目前暂不支持,以后可以支持。
- 工程依赖sop-service-common,和eureka
- pom.xml添加SpringCloud支持
```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
```
- pom.xml依赖sop-service-common和eureka
```xml
<dependency>
@ -17,7 +33,7 @@
</dependency>
```
- 配置文件添加
- application.properties配置文件添加
```properties
server.port=2222

Loading…
Cancel
Save