方法一:指定整个mapper包下的日志级别
# application.yml
logging:
level:
***.fwzx.dao: debug #对应到mapper中dao包的路径
# 等价于application.properties
logging.level.***.example.demo.mapper=debug
mybatis%E6%97%A5%E5%BF%97%E7%BA%A7%E5%88%AB">方法二:指定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>