'Exception Catch Spring Boot JPA
Hi I using spring boot jpa and I have some annotation problem. I using @size where I get contrainviolationexception but I just want the message from size and propertypath. I also using @NotNull on double when I using postman it automacilly puts in 0.0.
How do I fix this.
Validation failed for classes [com.rampiibackend.rampiibackend.assessment.Entity.CheckLists.Posture] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='Comment Lenght Is Max 65', propertyPath=q11_Comm, rootBeanClass=class com.rampiibackend.rampiibackend.assessment.Entity.CheckLists.Posture, messageTemplate='Comment Lenght Is Max 65'}\n]",
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
