-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
wk-app/wk-nb-web-api/src/main/resources/application-prod.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
29
wk-app/wk-nb-web-api/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |