Javarevisited
Published in

Javarevisited

Are You Using @Valid and @Validated Annotations Wrong?

Validate Input in Spring Boot

Photo by M Zefzaf on Unsplash

Introduction

When I was first starting out my career as a developer, I often saw annotations @Validated and @Valid applied on the method parameters in controllers. Some people used @Validated, while others preferred @Valid. I was often confused which annotation to use and when. In this…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Milena Lazarevic

Milena Lazarevic

Software Engineer| How-To & Guides Writer | Women In Tech Advocate | Master Troll | LinkedIn https://www.linkedin.com/in/milena-lazarevic/