方案一(推荐): 配置:log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mybatis-plus: mapper-locations: classpath*:mapper/**.xml # 配置 configuration: # 驼峰 map-underscore-to-camel-case: true # 配置slq打印日志 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 方案二: