tree: 2971a28e4c93266df2a56e6a238f670da8ac959b [path history] [tgz]
  1. shenyu-examples-sofa-api/
  2. shenyu-examples-sofa-service/
  3. pom.xml
  4. README.md
shenyu-examples/shenyu-examples-sofa/README.md

Shenyu example Sofa


Run

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:

        <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

shenyu-examples-sofa-service config

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