Question : Explain @RestController annotation in Spring Boot?Reponse :The @RestController annotation helps you to add @ResponseBody and @Controller annotations to the class to write RESTFul web service APIs. You can also import org.springframework.web.bind.annotation package in your file. |
Enregistrer pour revision
Ajoutez cet element aux favoris, marquez-le comme difficile ou placez-le dans un ensemble de revision.
Connectez-vous pour enregistrer des favoris, des questions difficiles et des ensembles de revision.
Est-ce utile ? Oui Non
Les plus utiles selon les utilisateurs :
- What is Spring Boot?
- How to scan all the beans and package declarations in Spring Boot?
- What are embedded containers support by Spring?
- What are the advantages of microservice?
- Mention some advantages of Spring Boot.