NutzCN Logo
问答 nutzboot 启动不了,打印了三行log4j日志就没了。
发布于 9天前 作者 wx_eqm2gcbq8dicd8do2u10 63 次浏览 复制 上一个帖子 下一个帖子
标签:

nutzboot在eclipse中启动不了,打印了三行log4j日志就没了。

log4j:WARN No appenders could be found for logger (org.nutz.boot.banner.SimpleBannerPrinter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

使用Nutzboot:run也是启动不了.

代码在这里生成的, https://get.nutz.io/

E:\workspace\sts\zkshare>mvn compile nutzboot:run
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.jdc:zkshare:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 104, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] --------------------------< com.jdc:zkshare >---------------------------
[INFO] Building zkshare 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ zkshare ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ zkshare ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- nutzboot-maven-plugin:2.3.8.v20191031:run (default-cli) @ zkshare ---
log4j:WARN No appenders could be found for logger (org.nutz.boot.banner.SimpleBannerPrinter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.638 s
[INFO] Finished at: 2021-09-13T10:35:43+08:00
[INFO] ------------------------------------------------------------------------

E:\workspace\sts\zkshare>
3 回复

log4j.properties是否存在

加上了,还是一样的,不过我再生成的时候会不会是 选上了高级配置中的资源、配置文件放jar包外面了, 没注意弹出的”启用了高级配置,确定吗? 该功能仅供高级用户使用,慎选!!!”
这个只能高级用户使用吗

额,貌似是选上了配置文件放在jar包外了,去掉后就可以了

添加回复
请先登陆
回到顶部