egg-dj-dubbo

1.0.3 • Public • Published

egg-dj-dubbo

Install

$ npm i egg-dj-dubbo --save

Usage

// {app_root}/config/plugin.js
exports.dubbo = {
  enable: true,
  package: 'egg-dj-dubbo',
};

Configuration

use node-zookeeper-dubbo, see here.

// {app_root}/config/config.default.js
exports.dubbo = {
            application:{name:'demo-provider'},
            registry:'localhost:2181',
            dubboVer:'3.5.10',
            timeout: 6000, // 整个socket链接超时时间 默认6s
            root:'dubbo',// 不填默认dubbo
            dependencies:{
                Foo:{
                    interface:'com.alibaba.dubbo.demo.provider.DemoService',
                    dubboTimeout: 6000 // 单个应用超时时间
                },
            }
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-dj-dubbo

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

5.23 kB

Total Files

6

Last publish

Collaborators

  • yumeiqiang