blob: f83b1a2e8101dd0773b952e25e69f8dc8a17ff8a [file] [view]
# Shenyu example SpringCloud
***
## Run
first you should run eureka: shenyu-example-eureka
Then you can run server with http/zookeeper/etcd register center
### run with etcd register center
#### Shenyu-Admin config
add etcd register center dependency in shenyu-admin:
```xml
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-register-server-etcd</artifactId>
<version>${project.version}</version>
</dependency>
```
set etcd register config in shenyu-admin:
```yaml
shenyu:
register:
registerType: etcd
serverLists : http://localhost:2379
```
#### shenyu-examples-springcloud config
set etcd register config:
```yaml
shenyu:
client:
registerType: etcd
serverLists: http://localhost:2379
props:
contextPath: /springcloud
```
run ShenyuTestSpringCloudApplication