SLF4J: Class path contains multiple SLF4J bindings.

The error is shown in the figure

 
The reason for this error is that there are two bridges when the log information is generated, and the conflict results in error.

The solution is as follows:

Find the structure diagram in the POM file, and press and hold the Cril key to enlarge the diagram

Find the dependency as shown in the figure below, because there are two bridge conflicts, we only need to eliminate one

As shown in the figure below, right-click the logback classic we found and left-click exclude

At this point, our modification is good. Return to our POM file and update our modification, as shown in the following figure:

At this point, we can run our project again and find that our mistakes are gone, as shown in the figure below.


Read More: