In the file applicationConfig.xml that defines the database and database properties, set hibernate.show_sql to true
The resulting SQL will appear in the console
Note: Doing so will increase the burden on the system and is not conducive to performance tuning
ButThe parameters will become? The question mark is displayedThe solution is as follows:
The log level is TARCE<DEBUG < INFO< WARN < ERROR < FATAL, and the level is provided gradually, if the log level is set to INFO, it means that neither the TRACE nor DEBUG level logs will be visible.
The relationship between levels is the inclusion relationship, which means that if you set the log level to trace, logs greater than or equal to this level will be output.
Set upLogBack has a log level of TRACE(Spring Boot uses the LogBack log system by default, if you don't need to change to other log systems such as Log4j2, etc., you don't need to configure it, LogBack prints logs to the console by default.) )
Here is the root level used, i.e. all the logs of the project, because there are too many logs, we don't need some log output, you can set it separately as follows:
(End)
|