How to print sql execution log
1. When we use springBoot+mybatis, we need to print the log information of sql execution, and we can use it. We need to add a piece of configuration to the yml file.
mybatis:
configuration:
# 就是这行代码让mybatis可以输出sql语句
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
In this way, you can see the execution log of sql during execution.