SpringBoot_Viva_CheatSheet
SpringBoot_Viva_CheatSheet
Microservices
Q: What is a microservice?
A: An independently deployable unit that performs a specific business function.
Q: Advantages?
A: Scalability, flexibility, fault isolation, faster deployments.
Spring Annotations
Q: @RestController
A: Combines @Controller and @ResponseBody for REST APIs.
Q: @SpringBootApplication
A: Combines @Configuration, @EnableAutoConfiguration, and @ComponentScan.
Q: @Autowired
A: Performs dependency injection.
Swagger API
Q: What is Swagger?
A: Tool to document and test REST APIs with interactive UI.
HTTP Methods
Q: GET vs POST
A: GET fetches data; POST submits data.
Q: PUT & DELETE
A: PUT updates; DELETE removes a resource.