Configuring Log4j 1 and Log4j 2 for MyBatis Logging

Include the necessary dependencies in your project's build file. For Log4j 2, use the log4j-core artifact. For Log4j 1, include the older log4j library. Ensure only one version is active on the classpath to avoid conflicts. <!-- Log4j 2 --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId&g ...

Posted on Fri, 08 May 2026 18:17:30 +0000 by hollyspringer