Java Intro to Java Web Development with Spark Diving into Web Development Meet Spark

Tonnie Fanadez
Tonnie Fanadez
UX Design Techdegree Graduate 22,767 Points

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

Running to SLFJ error when taking the Spark Course

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.
Tonnie Fanadez
Tonnie Fanadez
UX Design Techdegree Graduate 22,767 Points

If running on the above error which took me hours to resolve just use these 3 lines, it worked for me in October 2019

dependencies {

    compile 'com.sparkjava:spark-core:2.9.1'
    compile 'org.slf4j:slf4j-api:2.0.0-alpha1'
    compile 'org.slf4j:slf4j-simple:2.0.0-alpha1'

}