完美解决:apache log4j cannot resolve问题

错误:apache log4j cannot resolve

引入下列pom文件

<dependency>
  <groupId>org.apache.logging.log4jgroupId>
  <artifactId>log4j-apiartifactId>
  <version>2.16.0version>
dependency>
<dependency>
  <groupId>org.apache.logging.log4jgroupId>
  <artifactId>log4j-coreartifactId>
  <version>2.16.0version>

<dependency>
 <groupId>commons-logginggroupId>
       <artifactId>commons-loggingartifactId>
        <version>2.6version>
   dependency>
     
        
<dependency>
   <groupId>org.slf4jgroupId>
   <artifactId>slf4j-log4j12artifactId>
   <version>1.7.30version>
 dependency>
     

你可能感兴趣的:(java,apache,log4j,单元测试)