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

Jose Mejia
Jose Mejia
16,162 Points

Error when compile

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.

I am using depen. compile 'com.sparkjava:spark-core:2.7.1'

Joseph Cauthen
Joseph Cauthen
6,342 Points

Hi there. Had the same problem. Following the link that is posted, I solved this by adding the slf4j-simple to my project.

compile 'org.slf4j:slf4j-simple:1.7.9'

cheers!

1 Answer

Alec Meyer
Alec Meyer
6,301 Points

compile 'org.slf4j.slf4j-simple:1.7.21' Add that to your build.gradle