How to disable Hibernate validation in a Spring Boot project How to disable Hibernate validation in a Spring Boot project java java

How to disable Hibernate validation in a Spring Boot project


As [M. Deinum] mentioned in a comment on my original post, the solution is to set:

spring.jpa.properties.javax.persistence.validation.mode=none

In the application.properties file.

Additionally, this behaviour is described here (its easy to miss because no example is provided).


@Erin Drummond's Answer is for database entity validation (individual records)

But if someone ran into a problem with schema validation below property works well.

# Hibernate ddl auto (create, create-drop, validate, update, none)spring.jpa.hibernate.ddl-auto=none


Actually, in spring boot 2.x. it is:

spring.jpa.hibernate.ddl-auto: none