spring boot 整合mybaits 怎么在控制台打印sql语句
在springboot有mybatis整合的时候,怎么在控制台打印sql语句?在上一篇《springboot和mybatis整合打印sql语句》有网友说这样打印不出来。今天凯哥就给大家介绍第二种打印方式:在resource文件夹下新建:logback.xml<?xml version="1.0" encoding="UTF-8"?&
在spring boot有mybatis整合的时候,怎么在控制台打印sql语句?
在上一篇《spring boot 和mybatis整合打印sql语句》有网友说这样打印不出来。今天凯哥就给大家介绍第二种打印方式:
在resource文件夹下新建:logback.xml
<?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPeriod="60 seconds" debug="false"> <contextName>logback</contextName> <!--输出到控制台--> <appender name="console" class="ch.qos.logback.core.ConsoleAppender"> <!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>ERROR</level> </filte
原创不易,完成人机校验,阅读全文
相关推荐
工作小总结spring boot 和mybatis整合打印sql语句经验分享解决idea控制台中文乱码问题GIT项目spring boot整合mybatis+durid+事务+PageHelper分页插件+sql打印的整合工作小总结spring boot 2.x 整合mybaits及分页插件工作小总结Guns mybatisplus只输出sql不输出结果集 【Guns框架怎么打印sql语句】P3C规范一、编程规约 (七) 控制语句学习笔录-SPRING BOOTspring boot 整合shiro 错误学习笔录-SPRING BOOTspring boot框架学习11-spring boot整合redis