0% found this document useful (0 votes)
12 views

SpringBoot_Viva_CheatSheet

This cheat sheet provides a concise overview of Spring Boot and related topics, including microservices, REST APIs, and Spring annotations. Key features of Spring Boot include auto-configuration and embedded servers, while microservices offer advantages like scalability and fault isolation. The document also covers HTTP methods, data transfer objects (DTO), and the structure of Spring MVC layers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

SpringBoot_Viva_CheatSheet

This cheat sheet provides a concise overview of Spring Boot and related topics, including microservices, REST APIs, and Spring annotations. Key features of Spring Boot include auto-configuration and embedded servers, while microservices offer advantages like scalability and fault isolation. The document also covers HTTP methods, data transfer objects (DTO), and the structure of Spring MVC layers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Spring Boot & Related Topics - Viva Cheat Sheet

Spring Boot Introduction


Q: What is Spring Boot?
A: A framework that simplifies Spring application development with auto-configuration and embedded servers.
Q: Key features?
A: Auto-configuration, Starter dependencies, CLI, Embedded servers, Actuator.

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.

REST, Web, and SOAP APIs


Q: What is REST API?
A: Architectural style using HTTP for resource-based interactions.
Q: What is Web API?
A: Any API accessible over the web (REST, SOAP, etc.).
Q: What is SOAP API?
A: Protocol-based API using XML and WSDL.

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.

JPA & JPQL


Q: What is JPA?
A: Java Persistence API for ORM and managing relational data.
Q: What is JPQL?
A: Java Persistence Query Language for querying entities.

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.

Spring Mapping Annotations


Q: @GetMapping()
A: Maps GET requests.
Q: @PostMapping()
A: Maps POST requests.
Q: @PutMapping()
A: Maps PUT requests.
Q: @PathVariable()
A: Binds URI values to method parameters.

DTO & ResponseEntity


Q: What is DTO?
A: Object used to transfer data between layers.
Q: What is ResponseEntity?
A: Wraps HTTP response with body, headers, and status.

Spring MVC Layers


Q: Controller
A: Handles HTTP requests.
Q: Service
A: Contains business logic.
Q: Repository
A: Interacts with the database using JPA.

You might also like