---
title: "log4j:WARN No appenders could be found for logger (org.springframework.context.s"
author: "何不笑"
date: "2013-08-30T14:09:27Z"
tags: []
categories: ["Web前端"]
slug: "log4j-warn-no-appenders-could-be-found-for-logger-org-springframework-context-s"
draft: false
lastmod: "2013-08-30T14:21:48Z"
id: 1933964
url: "https://wait7758521.iteye.com/blog/1933964"
---

Spring 使用LOG4J 这个开源框架时输出如下信息：

log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).

log4j:WARN Please initialize the log4j system properly.

 

解决方案：

将log4j.properties文件放置于工程的/src/ 目录下即可