赞
踩
在mybatis-config.xml 配置文件里添加
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<!-- 打印sql日志 -->
<setting name="logImpl" value="STDOUT_LOGGING" />
</settings>
</configuration>
方法一:
appcation.yml中添加:
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
方法二:
logging:
level:
com.lucifer.springboot.cache.mapper: debug
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。