Spring Boot @Valid vs @Validated: An Easy In-Depth Comparison

Today we will be talking about “Spring Boot @Valid vs @Validated”. When it comes to building web applications, it’s essential to handle input validation to ensure data integrity and security. In Spring Boot, two commonly used annotations for input validation are @Valid and @Validated. In this blog post, we’ll delve into the differences between these two annotations, their use cases, and when to choose one over the other.

Continue reading

An Easy Step-By-Step Guide to Changing Server Port in a Spring Boot Application [4 ways]

Pratik Bhuite 0 Comments

By default, Spring Boot applications use port 8080. However, there are scenarios where you might need to change this port, such as avoiding port conflicts or running multiple applications on the same server. In this article, we’ll see the stepwise guide to Changing Server Port in a Spring Boot Application. We’ll cover various methods and provide code snippets, along with solutions to potential errors that might arise during the process.

Continue reading
ADevGuide