What are the Spring Boot Annotations?

Category: Spring BootWhat are the Spring Boot Annotations?
Editor">Editor Staff asked 2 years ago

What are the Spring Boot Annotations?

1 Answers
Editor">Editor Staff answered 2 years ago

The @RestController is a stereotype annotation. It adds @Controller and @ResponseBody annotations to the class. We need to import org.springframework.web.bind.annotation package in our file, in order to implement it.
For more information click here.