Skip to content
Advertisement

How to disable the Hypersistence banner when using hibernate-types-52 in Spring Boot?

I use the com.vladmihalcea:hibernate-types-52 dependency in my Spring Boot Project. And, I notice that on application boot, some large log messages were added:

JavaScript

The hint is nice and the project sounds actually interesting, but still want to have the banner removed from my application.

Advertisement

Answer

There is a description by the Project Owner why the banner was introduced, why it will not be disabled on default and how to disable it manually.

How to remove the Hibernate Types banner

The automatic banner removal mode

In short, you can buy a Hypersistence Optimizer license and add the project as a dependency to benefit from the JPA and Hibernate auto-tuning checks.

Manual banner removal

Or you can add either a hibernate.properties or hibernate-types.properties file to your project with the one property to disable the banner:

JavaScript

Or, you could pass this property as a Java System property:

JavaScript

Spring Boot

Starting with the release of Hibernate 5.5 and the hibernate-types-55 dependency, you can now provide the hibernate.types.print.banner property in your application.properties file, like this:

JavaScript

If you’re using hibernate-types-52 or older dependencies, then you won’t be able to provide this setting via the Spring Boot application.properties file.

Advertisement