|
|
@ -2,7 +2,23 @@ |
|
|
|
|
|
|
|
|
|
|
|
以springboot项目为例,springmvc目前暂不支持,以后可以支持。 |
|
|
|
以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 |
|
|
|
```xml |
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
@ -17,7 +33,7 @@ |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
- 配置文件添加 |
|
|
|
- application.properties配置文件添加 |
|
|
|
|
|
|
|
|
|
|
|
```properties |
|
|
|
```properties |
|
|
|
server.port=2222 |
|
|
|
server.port=2222 |
|
|
|