如果碰到下列错误
log4j:WARN No appenders could be found for logger (test.Main$).
log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
可以在JVM中加一个参数-Dlog4j.debug检查具体错误原因