首页 > 数据库 >Idea+SpringBoot控制台调试打印sql语句

Idea+SpringBoot控制台调试打印sql语句

时间:2023-09-27 10:14:13浏览次数:48  
标签:语句 mapper SpringBoot Idea sql 控制台

在application.yml中添加:

logging:
  level:
    com.xiaobai.stock.mapper: DEBUG  //注意: ':'后有空格,不能省略

mapper:

运行时控制台

 

标签:语句,mapper,SpringBoot,Idea,sql,控制台
From: https://www.cnblogs.com/RMhongchen/p/17732001.html

相关文章

  • GreatSQL一个关于主从复制的限制描述与规避
    一、背景分享一个在项目运维中遇到的一个主从复制限制的一个坑,项目的架构为主集群+灾备集群,每个集群为一主两从模式。主集群到灾备集群的同步为主从复制的方式,根据业务需求灾备集群需要忽略系统库跟某些配置表,所以才会触发此限制,而这个限制如果我们之前没有遇到过,那么排查起来也......
  • SpringBoot | 加密算法使用示例
    欢迎参观我的博客,一个Vue与SpringBoot结合的产物:https://poetize.cn博客:https://gitee.com/littledokey/poetize-vue2.git聊天室:https://gitee.com/littledokey/poetize-im-vue3.git后端:https://gitee.com/littledokey/poetize.git七牛云登录/注册地址(文件服务器,CDN):https:/......
  • SpringBoot | Dubbo之Filter使用示例
    欢迎参观我的博客,一个Vue与SpringBoot结合的产物:https://poetize.cn博客:https://gitee.com/littledokey/poetize-vue2.git聊天室:https://gitee.com/littledokey/poetize-im-vue3.git后端:https://gitee.com/littledokey/poetize.git七牛云登录/注册地址(文件服务器,CDN):https:/......
  • SpringBoot | Redis序列化与分布式锁
    欢迎参观我的博客,一个Vue与SpringBoot结合的产物:https://poetize.cn博客:https://gitee.com/littledokey/poetize-vue2.git聊天室:https://gitee.com/littledokey/poetize-im-vue3.git后端:https://gitee.com/littledokey/poetize.git七牛云登录/注册地址(文件服务器,CDN):https:/......
  • SpringBoot | Jackson序列化
    欢迎参观我的博客,一个Vue与SpringBoot结合的产物:https://poetize.cn博客:https://gitee.com/littledokey/poetize-vue2.git聊天室:https://gitee.com/littledokey/poetize-im-vue3.git后端:https://gitee.com/littledokey/poetize.git七牛云登录/注册地址(文件服务器,CDN):https:/......
  • mySQL
    createtableemp(enochar(5)primarykey,enamechar(8)notnull,esexcharcheck(esexin('m','f')),birthdate,salarynumeric(9,2)default'0.00');createtabledept(dnochar(3)primarykey,dnamevarchar(20)notnull,......
  • sql server group by 拼接
    selectg.GameItem,g.UserId,b.vipLevel,CAST((  SELECT a.orderId+','FROMG_Game_Ordera  WHERE g.userId=a.userIdand SettleTime>='2023-09-2500:00:00'andSettleTime<='2023-09-2523:59:59'andXmState=0and......
  • 数据库连接:使用Python连接到MySQL、SQLite和MongoDB
    在现代应用程序和数据科学中,数据库连接是至关重要的一部分。Python提供了丰富的库和驱动程序,可以轻松连接各种数据库,包括MySQL、SQLite和MongoDB。本文将介绍如何使用Python连接到这些不同类型的数据库,并提供相应的代码示例。连接到MySQL数据库MySQL是一个流行的关系型数据库管理系......
  • MySQL-5.7版本官方文档二进制离线安
    官网二进制包脚本安装#!/bin/bash#解决软件的依赖关系yuminstallcmakencurses-develgccgcc-c++vimlsofbzip2openssl-develncurses-compat-libs-y#解压mysqql二进制安装包tarxfmysql-5.7.43-linux-glibc2.12-x86_64.tar.gz#移动mysql解压后的文件到/usr/l......
  • IDEA中的java代码Getters和Setters报红问题解决办法【杭州多测师_王sir】
    今天在新的编辑器中导入新项目时,发现很多get、set、toString的相关方法全部报红,仔细排查发现,原来是bean中注解采用lombok来自动生成get、set、toStirng、equals等方法,而新的编辑器未安装lombok plugin,所以全部报红。Lombok简介项目中经常使用bean,entity等类,绝大部分数据类类中都......