zoukankan      html  css  js  c++  java
  • Correct the classpath of your application so that it contains a single, compatible version of org.apache.log4j.ConsoleAppender

    错误信息:

    ***************************
    APPLICATION FAILED TO START
    ***************************

    Description:

    An attempt was made to call the method org.apache.log4j.ConsoleAppender.<init>(Lorg/apache/log4j/Layout;)V but it does not exist. Its class, org.apache.log4j.ConsoleAppender, is available from the following locations:

    jar:file:/C:/Users/RedBack/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.25/log4j-over-slf4j-1.7.25.jar!/org/apache/log4j/ConsoleAppender.class
    jar:file:/C:/Users/RedBack/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar!/org/apache/log4j/ConsoleAppender.class

    It was loaded from the following location:

    file:/C:/Users/RedBack/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.25/log4j-over-slf4j-1.7.25.jar


    Action:

    Correct the classpath of your application so that it contains a single, compatible version of org.apache.log4j.ConsoleAppender

    解决问题:

    由于重新引入一个新的jar包,导致jar包冲突

    在新引入的jar的使用位置排除即可

    <exclusion>
    <groupId>org.slf4j</groupId>
    <artifactId>log4j-over-slf4j</artifactId>
    </exclusion>
    <exclusion>
    <artifactId>log4j</artifactId>
    <groupId>log4j.log4j</groupId>
    </exclusion>
  • 相关阅读:
    怎么接音响
    怎样区分音箱与音响
    什么是卡盟
    小白晋级达人必备 电视接口使用介绍(4)
    液晶电视插有线电视信号线的是哪个接口 HDMI是什么接口
    Google 镜像站搜集
    屏幕检测
    网站引流
    夜神安卓模拟器
    html5模拟平抛运动
  • 原文地址:https://www.cnblogs.com/redBack/p/13801128.html
Copyright © 2011-2022 走看看