The document discusses inversion of control and describes the roles of the controller, service, and repository layers in a web application. It also explains several Java annotations used in Spring frameworks like @RestController, @AutoWired, @Entity, @Data, and @NoArgsConstructor.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
7 views1 page
Project Spring
The document discusses inversion of control and describes the roles of the controller, service, and repository layers in a web application. It also explains several Java annotations used in Spring frameworks like @RestController, @AutoWired, @Entity, @Data, and @NoArgsConstructor.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
inversion of control(IOC)
controller: client gives request->(request dispatcher) take http request then
generate response then send the data . hiberate= take an object and save it directly to table. service: all the methods are called from repository. takes data from controller and send it to the repository class.(processing are done here.any changes)
repository:database transaction takes place.
@RestController: controller class json request json response.
@annotation : all the @ are annotations. @AutoWired : manages all the object all injects all the dependencies required for the new object. @Entity,@Data,@NoArgsConstructor : JPA annotations. @Entity-> by default makes table and columns. @Data-> convenient shortcut annotation that bundles the features of @ToString, @EqualsAndHashCode, @Getter / @Setter @NoArgsConstructor->will generate a constructor with no parameters