Home > other >  How to close the myabatis plus console output SQL log
How to close the myabatis plus console output SQL log

Time:04-14

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!

CodePudding user response:

How to set up the backend server not print SQL log

Not to mybatis configuration properties, still can print, mybatis don't configure log data, or can print problem,
  • Related