2.16.0版的Log4j2,要求jdk至少1.8. 已不再支持jdk1.7
<!-- log4j2 --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.16.0</version&