原文:tomcat 启动时 出现 More than one fragment with the name [log4j] was found. This is not legal with relative ordering.

启动项目时 idea 控制台出现如上错误,主要看一下标红的地方 ,大概意思是 找到多个名为log j的片段。这是不合法的相对排序. 我这里主要原因还是前段时间因为log j出现漏洞,项目中的log j . . 版本需要升级到 . 版本以上, 由于本地项目中之前版本没有清掉, 在target文件夹中,然后在 项目名 target tomcat部署名 WEB INF lib下发现出现了不同版本的lo ...

2021-12-21 09:59 0 1307 推荐指数:

查看详情

WEB系统启动时加载Log4j的配置文件

  如何在系统启动的时候加载log4j的配置文件呢?   1、自定义监听类并且继承“ServletContextListener”接口:      上述代码中FileUtil.listFile() 方法是自己封装的工具类。 View Code ...

Tue Sep 09 23:37:00 CST 2014 0 4954
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM