fix: 给 hello-midway 的 config 中增加 nacos 配置注释
diff --git a/examples/hello-midway/src/app.ts b/examples/hello-midway/src/app.ts
index ebc7ad9..6f1736a 100644
--- a/examples/hello-midway/src/app.ts
+++ b/examples/hello-midway/src/app.ts
@@ -21,7 +21,7 @@
export default async (app: Application) => {
console.log('🚀 Your awesome APP is launching...');
await dubbo(app);
- await app.dubbo.ready();
console.log('dubbo was ready..');
+ await app.dubbo.ready();
console.log('✅ Your awesome APP launched');
};
diff --git a/examples/hello-midway/src/config/config.default.ts b/examples/hello-midway/src/config/config.default.ts
index 90dfc8d..9114511 100644
--- a/examples/hello-midway/src/config/config.default.ts
+++ b/examples/hello-midway/src/config/config.default.ts
@@ -28,6 +28,17 @@
// add your config here
config.middleware = [];
+ /**
+ * dubbo config
+ *
+ * application 当前的应用标识
+ * register 注册中心地址
+ * support registry mode
+ * 1、 zookeeper 'localhost:2181,localhost:2182,localhost:2183'
+ * 2、 nacos 'nacos://localhost:2181'
+ * nacos 注册地址要以 nacos:// 开头
+ *
+ */
config.dubbo = {
application: 'hello-midway',
// zookeeper 的链接