SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"

自动化框架中,从返回的json字符串中获取值,需要用jsonpath



    com.jayway.jsonpath
    json-path
    2.4.0


运行testng.xml文件报错:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

解决方案:

pom中添加如下依赖

        
            org.slf4j
            slf4j-log4j12
            1.7.21
            test
        

你可能感兴趣的:(SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder")