两种情况:
如果SpringBoot配置文件是application.properties
logging.level.com.test.dao=debug
如果SpringBoot配置文件是application.yml
logging:
level:
com:
test:
dao: debug
注意:其中com.test.dao是MyBatis接口interface包的路径,“logging.level.*=LEVEL”来指定日志的级别,"LEVEL"的取值可以是trace, debug, info, warn, error, fatal, off。
至于两种配置文件的区别可以参考:spring boot配置文件:.yml与.properties