Maven SLF4J: Class path contains multiple SLF4J bindings

前端 未结 5 2181
北恋
北恋 2020-12-08 07:42

I am getting following runtime Exception while running my java code. Could someone please help me resolve the binding conflicts.

    SLF4J: Class path contai         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 08:11

    Run mvn dependency:tree and search which dependency have the slf4j implementations you do not want, then exclude them with a dependency exclusion like:

    
        org.someexternallib
        someexternallibartifact
        ...
    
        
            
              org.slf4j
              slf4j-log4j12
           
            
              log4j
              log4j
          
         
    
    

提交回复
热议问题