Skip to content
Advertisement

Tag: spring-boot

How to log failed sql in hibernate?

I’m building a SpringBoot application with spring-data-jpa. I know how to log all sqls from this question. How to print a query string with parameter values when using Hibernate But what if I only want to log failed sqls? Answer There are two options: Configure sql logging with parameter values. Disable jdbc batching and enable flushing through hibernate means. Add

Advertisement