Skip to content

Commit

Permalink
update: dubbo的配置从 application.properties 加载并支持随机端口 from nutzboot-star…
Browse files Browse the repository at this point in the history
…ter-dubbo
  • Loading branch information
Wizzercn committed Apr 13, 2018
1 parent dbf3fc6 commit 666f6aa
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 176 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ redis.mode=normal
#设置wkcache有效时间,wkcache方法缓存演示
wkcache.cms_channel=4800
wkcache.cms_site=4800
wkcache.cms_article=4800
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.annotation.package=cn.wizzer.app
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ redis.mode=normal
wkcache.cms_channel=4800
wkcache.cms_site=4800
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.annotation.package=cn.wizzer.app
14 changes: 0 additions & 14 deletions wk-app/wk-nb-service-cms/src/main/resources/dubbo.xml

This file was deleted.

86 changes: 0 additions & 86 deletions wk-app/wk-nb-service-sys/dependency-reduced-pom.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ jdbc.connectionProperties=druid.stat.slowSqlMillis=2000
jdbc.defaultAutoCommit=true

nutz.dao.interceptor.cache.enable=true
nutz.dao.interceptor.cache.table.names=sys_user,sys_menu,sys_role
nutz.dao.interceptor.cache.table.names=sys_user,sys_menu,sys_role

#dubbo.application.name 若名称不写则自动取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
dubbo.annotation.package=cn.wizzer.app
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ jdbc.connectionProperties=druid.stat.slowSqlMillis=2000
jdbc.defaultAutoCommit=true

nutz.dao.interceptor.cache.enable=true
nutz.dao.interceptor.cache.table.names=sys_user,sys_menu,sys_role
nutz.dao.interceptor.cache.table.names=sys_user,sys_menu,sys_role

#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
dubbo.annotation.package=cn.wizzer.app
14 changes: 0 additions & 14 deletions wk-app/wk-nb-service-sys/src/main/resources/dubbo.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ jdbc.testWhileIdle=true
jdbc.connectionProperties=druid.stat.slowSqlMillis=2000
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.annotation.package=cn.wizzer.app
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ jdbc.testWhileIdle=true
jdbc.connectionProperties=druid.stat.slowSqlMillis=2000
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.annotation.package=cn.wizzer.app
14 changes: 0 additions & 14 deletions wk-app/wk-nb-service-wx/src/main/resources/dubbo.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jdbc.testWhileIdle=true
jdbc.connectionProperties=druid.stat.slowSqlMillis=2000
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.annotation.package=cn.wizzer.app

#==============================================================
#Configure Main Scheduler Properties
#==============================================================
Expand Down
6 changes: 6 additions & 0 deletions wk-app/wk-nb-task/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jdbc.testWhileIdle=true
jdbc.connectionProperties=druid.stat.slowSqlMillis=2000
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.annotation.package=cn.wizzer.app

#==============================================================
#Configure Main Scheduler Properties
#==============================================================
Expand Down
14 changes: 0 additions & 14 deletions wk-app/wk-nb-task/src/main/resources/dubbo.xml

This file was deleted.

14 changes: 0 additions & 14 deletions wk-app/wk-nb-web-api/src/main/resources/dubbo.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#开发模式 -Dnutz.profiles.active=prod

nutz.application.name=wk-nb-web-platform
#部署模式 -Dnutz.profiles.active=prod
server.port=8080
server.host=0.0.0.0

Expand Down Expand Up @@ -46,4 +46,10 @@ beetl.FT.filesize=cn.wizzer.app.web.commons.ext.beetl.FileSizeFormat
beetl.FT.html2txt=cn.wizzer.app.web.commons.ext.beetl.Html2TxtFormat
#用法: ${"",html2txt="100"} 截取100字符
beetl.FT.strlen=cn.wizzer.app.web.commons.ext.beetl.StrlenFormat
#用法: ${"",strlen="100"} 截取100字符
#用法: ${"",strlen="100"} 截取100字符

#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
dubbo.annotation.package=cn.wizzer.app
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
nutz.application.name=wk-nb-web-platform
server.port=8080
server.host=0.0.0.0

Expand Down Expand Up @@ -42,4 +43,10 @@ beetl.FT.filesize=cn.wizzer.app.web.commons.ext.beetl.FileSizeFormat
beetl.FT.html2txt=cn.wizzer.app.web.commons.ext.beetl.Html2TxtFormat
#用法: ${"",html2txt="100"} 截取100字符
beetl.FT.strlen=cn.wizzer.app.web.commons.ext.beetl.StrlenFormat
#用法: ${"",strlen="100"} 截取100字符
#用法: ${"",strlen="100"} 截取100字符

#dubbo.application.name 若名称不写则取 nutz.application.name
dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.protocol.name=dubbo
#dubbo.protocol.port 若端口不指定则为随机端口
dubbo.annotation.package=cn.wizzer.app
13 changes: 0 additions & 13 deletions wk-app/wk-nb-web-platform/src/main/resources/dubbo.xml

This file was deleted.

0 comments on commit 666f6aa

Please sign in to comment.