Home Spring boot @AllArgsConstructor and @NoArgsConstructor @Data annotations using Spring Boot

@AllArgsConstructor and @NoArgsConstructor @Data annotations using Spring Boot

4 min read
0
0
169

In this tutorials will teach you @AllArgsConstructor and @NoArgsConstructor @Data annotations.what is the purpose we use this annotations is if we have a class it has Argument Constructor and No Argument Constructor and Getter and Setters and String Method. instead of implementing all of these.

i have attached two examples

Example 1

this example we implemented the Argument Constructor and No Argument Constructor and Getter and Setters and String Method.

Example 2

instead of implementing all of these just write these annotations. These annotations this can manage by all the works.

if you want add these annotations you have to add the maven lombok dependency.click here  
to add these dependency on the pom.xml file.

@AllArgsConstructor and @NoArgsConstructor @Data annotations

i have attached the video link below. which will do this tutorials step by step

 

Load More Related Articles
Load More By admin
Load More In Spring boot

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

Create Maven project in Intellij

In this tutorial will see how to create Maven project in Intellij step by step. First Step…