在JUnit测试期间这种情况会突然发生。一切正常,我写了一些新的测试,这个错误发生了。如果我恢复它,它就不会消失。这是为什么呢?log4j:WARNNoappenderscouldbefoundforlogger(org.springframework.test.context.junit4.SpringJUnit4ClassRunner).log4j:WARNPleaseinitializethelog4jsystemproperly.log4j:WARNSeehttp://logging.apache.org/log4j/1.2/faq.html#noconfigformorein