shenyu-examples/shenyu-examples-sofa/README.md
You can run server with http/zookeeper/etcd register center
add etcd register center dependency in shenyu-admin:
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-register-server-etcd</artifactId>
<version>${project.version}</version>
</dependency>
set etcd register config in shenyu-admin:
shenyu:
register:
registerType: etcd
serverLists : http://localhost:2379
set etcd register config:
shenyu:
client:
registerType: etcd #http #zookeeper #etcd
serverLists: http://localhost:2379 #http://localhost:9095 #localhost:2181 #http://localhost:2379
props:
contextPath: /sofa
appName: sofa
port: 8888
run TestSofaApplication