Skip to content
Advertisement

Validator Framework @Min, @Max, @NotBlank not working

I am trying my hand in Validator ANnotations and I dont seem to have the hang of it yet

THese are my DTO

JavaScript
JavaScript

THis is my controller

JavaScript

This is my request body

JavaScript

I am able to get a valid answer for this, it doesnt raise an error or send my error messages. I dont understand why??? Someone help please

Advertisement

Answer

define in your pom.xml the validation dependency:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement