在yml配置文件中配置如下:
#屏蔽sql打印,因为该配置会将sql语句和执行结果都打印到控制台
mybatis-plus:
configuration:
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#在logging.level.mapper层的包路径这里配置打印级别为debug
logging:
level:
包路径(mapper层): debug
在yml配置文件中配置如下:
#屏蔽sql打印,因为该配置会将sql语句和执行结果都打印到控制台
mybatis-plus:
configuration:
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#在logging.level.mapper层的包路径这里配置打印级别为debug
logging:
level:
包路径(mapper层): debug