- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
This @Valid Bug Lets Bad Requests Pass Silently
Most Spring Boot devs think @Valid automatically validates everything inside the request body. It doesn’t.
There’s a silent validation trap where nested DTOs and List of DTO elements are NOT validated unless you explicitly enable cascade validation.
In this Production Ready Code (PRC) demo, you’ll see a real bug that returns 200 OK for invalid payloads — and the 1-line fix that makes validation actually enforce rules in production.
✅ What you’ll learn:
Why @Valid can be ignored silently with nested objects
The common bug: @Valid missing on List of DTO / nested DTO fields
The correct fix: @Valid on nested fields + list elements (Bean Validation cascade)
How to prove it with a failing request + proper 400 error response
🧩 PRC takeaway: stop trusting validation “by default”. Make it explicit and test it.
If you build Spring Boot APIs in microservices, fintech, ecommerce, or any production backend — this is one of those bugs that leaks garbage data into your system.
👍 Like / Subscribe for more Production Ready Spring Boot + Java backend pitfalls.
#SpringBoot #Java #Validation #BeanValidation #JakartaValidation #Backend
Видео This @Valid Bug Lets Bad Requests Pass Silently канала Prod Ready Code
There’s a silent validation trap where nested DTOs and List of DTO elements are NOT validated unless you explicitly enable cascade validation.
In this Production Ready Code (PRC) demo, you’ll see a real bug that returns 200 OK for invalid payloads — and the 1-line fix that makes validation actually enforce rules in production.
✅ What you’ll learn:
Why @Valid can be ignored silently with nested objects
The common bug: @Valid missing on List of DTO / nested DTO fields
The correct fix: @Valid on nested fields + list elements (Bean Validation cascade)
How to prove it with a failing request + proper 400 error response
🧩 PRC takeaway: stop trusting validation “by default”. Make it explicit and test it.
If you build Spring Boot APIs in microservices, fintech, ecommerce, or any production backend — this is one of those bugs that leaks garbage data into your system.
👍 Like / Subscribe for more Production Ready Spring Boot + Java backend pitfalls.
#SpringBoot #Java #Validation #BeanValidation #JakartaValidation #Backend
Видео This @Valid Bug Lets Bad Requests Pass Silently канала Prod Ready Code
spring boot validation spring boot @valid @valid not working nested dto validation list validation @valid list @valid nested dto validation fails silently requestbody validation jakarta bean validation bean validation hibernate validator methodargumentnotvalidexception 400 validation error rest api validation @validated vs @valid spring boot pitfalls production-ready spring boot java backend spring boot microservices
Комментарии отсутствуют
Информация о видео
25 декабря 2025 г. 6:56:15
00:03:09
Другие видео канала




















