M
M
melikbekyan2016-04-20 16:27:45
Java
melikbekyan, 2016-04-20 16:27:45

Why doesn't validation work in spring?

Form validation doesn't work, bindingResult.hasErrors() is always false when input field name
of size 1
c1b5497601af472896c5c25739ba3d11.png54ecba31b63841f48cd774c3238de048.png99a26c07ad6c4abe9fa8ca40f5b7110e.png18700090140d41d9bd6d4566b9f726cf.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
melikbekyan, 2016-04-20
@melikbekyan

Solved the problem, it was necessary to include the hibernate-validator library

V
Valera Programmer, 2016-04-20
@noddux

Try replacing commandName with modelAttribute in the form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question