Home > Back-end >  How to close the myabatis plus console output SQL audit log stay
How to close the myabatis plus console output SQL audit log stay

Time:04-13

Everybody:
Recently with the spring cloud alibaba framework development of services, myabatis plus console output many SQL statements, affect the backend API response speed, want to shut down
Myabatis plus console output SQL logs, according to the online query,
To configure mybatis plus
Mybatis:
Type - aliases - package: com. Jiafupeng. Mapper
Mapper - locations: the classpath: XML mapper/* */*.
Configuration:
Log - impl: org. Apache. Ibatis. No log logging. The nologging. NoLoggingImpl # (default is the debug logs)
But start the service, the console continue to output a SQL statement

Also added the following configuration in the configuration information
Global - config:
Banner: false

After above to try to turn off the console output SQL log

Before spring MVC project mybatis SQL log when the default output, not only set the parameters, output SQL log,

What do you have a way to turn off the log output

Thank you very much!
  • Related