log4j:WARN No appenders could be found for logger (com.three.cn.Test). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
------解决方案-------------------- log4j配置文件放至src下
------解决方案-------------------- jar 文件的跟目录下。 如果log4j.xml/log4j.properties在某个目录下, java -classpath .;%PATH_TO_LOG4J_CONFIG% YourMainClass