Mybatis3.5.0 + log4j-1.2.17 报错 StatusLogger No Log4j 2 configuration file found
Mybatis3.5.0 + log4j-1.2.17 报错 StatusLogger No Log4j 2 configuration file found
无法生成日志
网上查了之后,似乎 不再支持properties文件了,要在项目的"src"下,新建一个log4j2.xml
实例:
<?xml version="1.0" encoding="UTF-8"?><Configuration> <Appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /> </Console> </Appenders> <Loggers> <Root level="debug"> <AppenderRef ref="Console" /> </Root> </Loggers></Configuration>