Tag

datasource-proxy

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 27, 2025 · Backend Development

How to Log SQL Statements in Spring Boot 3 Using JDBC, JPA, MyBatis & datasource-proxy

This article announces a Spring Boot 3 case collection with 100 permanent examples and then provides a comprehensive guide on recording SQL statements in Spring Boot applications via JDBC, JPA, MyBatis and the datasource‑proxy library, including configuration snippets, code samples and visual output illustrations.

JDBCJPAMyBatis
0 likes · 8 min read
How to Log SQL Statements in Spring Boot 3 Using JDBC, JPA, MyBatis & datasource-proxy
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 12, 2024 · Backend Development

How to Properly Log SQL Queries in Spring Boot Without Using show_sql

This article explains why the default Spring Boot show_sql setting only prints SQL to the console, demonstrates its limitations, and provides a reliable approach using Hibernate logging and a datasource‑proxy to capture full SQL statements, parameters, and batch execution details in log files.

HibernateJavaSpring Boot
0 likes · 7 min read
How to Properly Log SQL Queries in Spring Boot Without Using show_sql