在class 中使用log4j 之后 运行出现 Exception in thread "main" java.lang.NoSuchFieldError: level 这样的错误,首先检查jar 包有没有冲突,把不用的jar删掉 再试试