Skip to content

Commit

Permalink
add: wk-nb-web-api漏提交的文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed Apr 13, 2018
1 parent 666f6aa commit d5d47fc
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nutz.application.name=wk-nb-web-api
server.port=9001
server.host=0.0.0.0

jetty.contextPath=/
jetty.threadpool.idleTimeout=60000
jetty.threadpool.minThreads=4
jetty.threadpool.maxThreads=8

redis.host=127.0.0.1
redis.port=6379
redis.timeout=2000
redis.max_redir=10
redis.database=0
redis.maxTotal=100
#redis.password=test123
#redis集群模式设置 redis.mode=cluster
redis.mode=normal
#redis.nodes=

#这是一个demo,实际业务要存张表吧,还有调用频率/权限等需要自己扩展
apitoken.appid=wizzer
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.annotation.package=cn.wizzer.app
29 changes: 29 additions & 0 deletions wk-app/wk-nb-web-api/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nutz.application.name=wk-nb-web-api
server.port=9001
server.host=0.0.0.0

jetty.contextPath=/
jetty.threadpool.idleTimeout=60000
jetty.threadpool.minThreads=4
jetty.threadpool.maxThreads=8

redis.host=127.0.0.1
redis.port=6379
redis.timeout=2000
redis.max_redir=10
redis.database=0
redis.maxTotal=100
#redis.password=1234
#redis集群模式设置 redis.mode=cluster
redis.mode=normal
#redis.nodes=

#这是一个demo,实际业务要存张表吧,还有调用频率/权限等需要自己扩展
apitoken.appid=wizzer
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.annotation.package=cn.wizzer.app
7 changes: 7 additions & 0 deletions wk-app/wk-nb-web-api/src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
log4j.rootLogger=debug,Console

log4j.logger.org.eclipse.jetty=info

log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=[%-5p] %d{HH:mm:ss.SSS} %l - %m%n

0 comments on commit d5d47fc

Please sign in to comment.