Log4j2 could not find a logging implementation

错误信息:

Log4j2 could not find a logging implementation. Please add log4j-core to the classpath

解决办法:
pom把log4j-api也加进去

 
            org.apache.logging.log4j
            log4j-core
            2.9.1
        
        
            org.apache.logging.log4j
            log4j-api
            2.9.1
        

你可能感兴趣的:(Log4j2 could not find a logging implementation)