|
|
@ -13,12 +13,30 @@ SOP对easyopen项目提供了很好的支持,如果您的服务端使用了eas |
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>com.gitee.sop</groupId> |
|
|
|
<groupId>com.gitee.sop</groupId> |
|
|
|
<artifactId>sop-service-common</artifactId> |
|
|
|
<artifactId>sop-service-common</artifactId> |
|
|
|
<version>1.0.0-SNAPSHOT</version> |
|
|
|
<version>2.0.0-SNAPSHOT</version> |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 使用nacos注册中心 |
|
|
|
|
|
|
|
版本 0.2.x.RELEASE 对应的是 Spring Boot 2.x 版本,版本 0.1.x.RELEASE 对应的是 Spring Boot 1.x 版本。 |
|
|
|
|
|
|
|
https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-alibaba-nacos-discovery |
|
|
|
|
|
|
|
--> |
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>org.springframework.cloud</groupId> |
|
|
|
<groupId>org.springframework.cloud</groupId> |
|
|
|
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> |
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
|
|
|
|
|
|
|
<version>0.2.2.RELEASE</version> |
|
|
|
|
|
|
|
<exclusions> |
|
|
|
|
|
|
|
<exclusion> |
|
|
|
|
|
|
|
<groupId>com.alibaba.nacos</groupId> |
|
|
|
|
|
|
|
<artifactId>nacos-client</artifactId> |
|
|
|
|
|
|
|
</exclusion> |
|
|
|
|
|
|
|
</exclusions> |
|
|
|
|
|
|
|
</dependency> |
|
|
|
|
|
|
|
<dependency> |
|
|
|
|
|
|
|
<groupId>com.alibaba.nacos</groupId> |
|
|
|
|
|
|
|
<artifactId>nacos-client</artifactId> |
|
|
|
|
|
|
|
<version>1.1.0</version> |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>net.oschina.durcframework</groupId> |
|
|
|
<groupId>net.oschina.durcframework</groupId> |
|
|
|
<artifactId>easyopen</artifactId> |
|
|
|
<artifactId>easyopen</artifactId> |
|
|
@ -49,9 +67,7 @@ public class SopConfig extends EasyopenServiceConfiguration { |
|
|
|
```java |
|
|
|
```java |
|
|
|
@Configuration |
|
|
|
@Configuration |
|
|
|
public class ZuulConfig extends EasyopenZuulConfiguration { |
|
|
|
public class ZuulConfig extends EasyopenZuulConfiguration { |
|
|
|
static { |
|
|
|
|
|
|
|
new ManagerInitializer(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|