nacos viper remote provider

This commit is contained in:
yoyofx
2021-04-29 19:54:59 +08:00
parent 20220cb36f
commit bcd01f97cc
7 changed files with 290 additions and 0 deletions

20
example_config.yaml Normal file
View File

@@ -0,0 +1,20 @@
yoyogo:
application:
name: yoyogo_demo_dev
cloud:
discovery:
cache:
ttl: 30 # seconds
strategy: "round-robin" # round-robin , weight-time , random
type: "nacos"
metadata:
url: "120.53.133.30"
port: 80
namespace: "public"
group: "DEFAULT_GROUP"
configserver:
dataId: "config_dev"
auth:
enable: true
username: "root"
password: "1234"