1、配置mybatis-plus日志实现类
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
2、配置mapper日志级别为DEBUG
<springProfile name="dev">
<logger name="com.xzp.mapper" level="DEBUG"></logger>
</springProfile>
1、配置mybatis-plus日志实现类
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
2、配置mapper日志级别为DEBUG
<springProfile name="dev">
<logger name="com.xzp.mapper" level="DEBUG"></logger>
</springProfile>
本文标题:mybatis-plus打印sql到日志文件
本文链接:https://www.haomeiwen.com/subject/oyvvaltx.html
网友评论