SpringBoot + Mybatis outputs sql statements in the console

1. If using application.properties

In the configuration add:

logging.level.com.looedu.mapper=debug

Format: logging.level.Mapper class package=debug


2. If using application.yml

In the configuration add:

logging:
  level:
    com:
      looedu:
        mapper: debug

 Also according to the yml rules, separate the package names according to: 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325640366&siteId=291194637