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
Tag: spring-boot
Java sort list alphabeticaly with value “Other” at the end
I got a small Spring Boot application that manages some projects and clients. A client has a country ( which is an entity) and I want to let the user when he wants to create/update his clients to …
How can i use Flyway migration with single schema and multiple projects
How to manage multiple projects dealing with the same DB schema. The Flyway migration scripts in each of the project does not allow to start if it is modified by the other project. For example: I have a spring boot Project X with a FlywayInitializer class. And i have a submodule Project Y with also his own FlywayInitializer class Project