java -Dlog4j.configurationFile=directory/file.xml 转载于:https://www.cnblogs.com/qiumingcheng/p/8365575.html