目录
二、方法二:配置mybatis-config.xml
三、方法三:指定整个mapper包下的日志级别
一、方法一:指定mybatis日志级别
# application.yml
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 等价于application.properties
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
二、方法二:配置mybatis-config.xml
<configuration>
<settings>
<setting name="logImpl" value="STDOUT_LOGGING"/>
</settings>
</configuration>
三、方法三:指定整个mapper包下的日志级别
# application.yml
logging:
level:
***.example.demo.mapper: debug
# 等价于application.properties
logging.level.***.example.demo.mapper=debug