for example I have entity with 20 properties, most of them have validators. Can I somehow disable validators? Ofc I can comment them or just remove but when You have many entities this would take a lot of time and in dev mode I would like to mock dummy data
Asked
Active
Viewed 2,975 times
2
-
Possible duplicate of [How to disable Hibernate validation in a Spring Boot project](https://stackoverflow.com/questions/26764532/how-to-disable-hibernate-validation-in-a-spring-boot-project) – senjin.hajrulahovic Aug 28 '18 at 11:24
1 Answers
0
You can use the property:
spring.jpa.properties.javax.persistence.validation.mode=none
as stated here:
How to disable Hibernate validation in a Spring Boot project

senjin.hajrulahovic
- 2,961
- 2
- 17
- 32