Solution to the problem that the Mybatis Log plugin does not take effect

Mybatis Log plugin does not take effect

After searching, it was found that it was because no configuration was added. After adding the configuration, you can see the complete sql output in the console of Mybatis Log (or click TooL—Mybatis Log Plugin will appear in the lower right corner of the Mybatis Log console).
The configuration file is as follows:

application configuration:

mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl

yml configuration

# Mybatis log plugin 插件输出日志配置
mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

Guess you like

Origin blog.csdn.net/qq_45924975/article/details/130785132