Skip to content

Commit

Permalink
update: 更改dubbo随机端口设置方式防止端口冲突,dubbo.protocol.port=0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed May 9, 2018
1 parent 582549e commit 12c9e1e
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ wkcache.cms_article=4800
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer.app
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ wkcache.cms_article=4800
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer.app
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jdbc.defaultAutoCommit=true
nutz.dao.interceptor.cache.enable=true
nutz.dao.interceptor.cache.table.names=sys_user,sys_menu,sys_role

#dubbo.application.name 若名称不写则自动取 nutz.application.name
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer.app
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jdbc.defaultAutoCommit=true
nutz.dao.interceptor.cache.enable=true
nutz.dao.interceptor.cache.table.names=sys_user,sys_menu,sys_role

#dubbo.application.name 若名称不写则取 nutz.application.name
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.scan.basePackages=cn.wizzer.app
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jdbc.defaultAutoCommit=true
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer.app

#==============================================================
Expand Down
3 changes: 2 additions & 1 deletion wk-app/wk-nb-task/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jdbc.defaultAutoCommit=true
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer.app

#==============================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ apitoken.appkey=257221db3f2741e598b6e1262f3ec882
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ apitoken.appkey=257221db3f2741e598b6e1262f3ec882
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ beetl.FT.strlen=cn.wizzer.app.web.commons.ext.beetl.StrlenFormat
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer.app
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ beetl.FT.strlen=cn.wizzer.app.web.commons.ext.beetl.StrlenFormat
#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
#随机端口
dubbo.protocol.port=0
dubbo.annotation.package=cn.wizzer.app

0 comments on commit 12c9e1e

Please sign in to comment.