log4j 和slf4j的 类冲突解决
程序员文章站
2022-03-10 14:33:25
...
1. 检查 log4j 和slf4j的冲突
public class Log4jTest { public static void main(String[] args) { try { Class.forName("org.slf4j.impl.Log4jLoggerFactory"); } catch (ClassNotFoundException e) { System.out.println(e.getMessage()); } try { Class.forName("org.apache.log4j.Log4jLoggerFactory"); } catch (ClassNotFoundException e) { System.out.println(e.getMessage()); } } }
上一篇: log4j 和slf4j的 类冲突解决
推荐阅读
-
右滑返回手势和UIScrollView中手势冲突的解决方法
-
详解Android Libgdx中ScrollPane和Actor事件冲突问题的解决办法
-
PHP中__autoload和Smarty冲突的简单解决方法
-
ThinkPHP的cookie和session冲突造成Cookie不能使用的解决方法
-
VMware和XAMPP同占用443端口发生冲突导致无法使用的解决办法图解
-
Android之ScrollView嵌套ListView和GridView冲突的解决方法
-
ThinkPHP的cookie和session冲突造成Cookie不能使用的解决方法
-
JS中双击和单击事件冲突问题的解决办法
-
模板视图和AngularJS之间冲突的解决方法
-
transport.js和jquery冲突问题的解决方法