---
title: "解决Failed to load class \"org.slf4j.impl.StaticLoggerBinder\""
author: "繁星水"
date: "2016-06-28T12:25:02Z"
tags: ["SLF4J", "log4j"]
categories: ["互联网"]
slug: "failed-to-load-class-org-slf4j-impl-staticloggerbinder"
draft: false
lastmod: "2016-06-28T12:25:02Z"
id: 2307750
url: "https://jameskaron.iteye.com/blog/2307750"
---

**解决办法，两步：** 

        一、在编译路径中添加Log4J的包，比如我一直在用的log4j-1.2.8.jar； 

        二、再添加一个叫做slf4j-log4j12-1.5.11.jar的包进行转换，注意到这里的log4j12，可能对应的是log4j 1.2版本。