客户端属性配置
本篇主要讲解如何在客户端接入时配置 ShenYu 的相关属性。
在你的微服务中设置shenyu属性,比如,在shenyu-examples-http 中相关配置如下:
属性配置
shenyu:
client:
registerType: http #zookeeper #etcd #nacos #consul
serverLists: http://localhost:9095 #localhost:2181 #http://localhost:2379 #localhost:8848
props:
contextPath: /http
appName: http
port: 8189
nacosNameSpace: ShenyuRegisterCenter