202111-14 Spring Boot mybatis-config 和 log4j 输出sql 日志的方式 依赖<dependency><groupId>log4j</groupId><artifactId>log4j</artifactId><version>1.2.17</version></dependency>两种配置log4j的方式:一定要新建一个log4j.properties文件在yaml中直接配置在mybatis-config中配置mapper-locations貌似不管用依旧需要加注解@Mappermybatis-config.xml<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEconfigurationPUBLIC"-/... 继续阅读 >