mybaits和spring整合log4j显示没有

log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
我已经配置了日志他还是显示mei'y
```static Logger logger= Logger.getLogger(userimpTest.class);
@Before
public void before() throws Exception{

 a=new ClassPathXmlApplicationContext("classpath:config/spring.xml");
 PropertyConfigurator.configure("config/log4j.properties");
}


      @Test
public void fisuserbyId( ) throws Exception {
    // TODO Auto-generated method stub

     userimp userimp= a.getBean("userimp",userimp.class);
     user user=userimp.finduserbyId(1);
     System.out.println(user.getId()+",\n"+user.getPassword());

}

是因为缺乏 log4j.properties 配置文件,弄一个配置文件放在 classpath 路径下试试。