The document provides a comprehensive overview of Spring Boot, including its definition, features, and advantages over traditional Spring. It covers key concepts such as microservices, RESTful APIs, and various annotations used in Spring Boot, along with comparisons to Spring MVC and SOAP. Additionally, it discusses tools like Swagger and Spring Initializr, as well as best practices for API development and testing.
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 ratings0% found this document useful (0 votes)
12 views7 pages
SpringbootNotesPDF
The document provides a comprehensive overview of Spring Boot, including its definition, features, and advantages over traditional Spring. It covers key concepts such as microservices, RESTful APIs, and various annotations used in Spring Boot, along with comparisons to Spring MVC and SOAP. Additionally, it discusses tools like Swagger and Spring Initializr, as well as best practices for API development and testing.
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/ 7
### SPRING BOOT VIVA QUESTIONS & ANSWERS (Based on Faculty Notes)
---
#### 1. What is Spring Boot?
Spring Boot is an open-source Java-based framework used to create microservices. It allows building stand-alone, production-grade Spring applications with minimum configurations.
#### 2. Who developed Spring Boot?
It was developed by the Pivotal Team.
#### 3. What are the key features of Spring Boot?
- Minimum configuration - Embedded Tomcat server - Production-ready packaging - Convention over configuration model
#### 4. What does "convention over configuration" mean?
Spring Boot follows defaults and assumptions to minimize the need for configurations.
#### 5. What are the advantages of using Spring Boot?
- Avoids complex XML config - Easy setup - Auto-configures beans - Offers annotation-based development - Reduces dev time
#### 6. How does Spring Boot help reduce boilerplate code?
By using starter dependencies and auto-configuring beans and components.
#### 7. What is the difference between Spring and Spring Boot?
Spring requires manual setup. Spring Boot provides auto-configurations, embedded servers, and simplifies development.
#### 8. What are Microservices?
Microservices are independently deployable small services that communicate with each other to form an application.
#### 9. How are Microservices different from Monolithic architecture?
Monolithic is tightly coupled and deployed as one. Microservices are loosely coupled and deployed individually.
#### 10. What are the benefits of Microservices?
- Simple scalability - Faster deployment - Easy to understand - High productivity
#### 11. What does "services are autonomous" mean?
Each microservice is developed and deployed independently without affecting others.
#### 12. What are the layers in Spring Boot Architecture?
Handles HTTP requests and forwards to the business layer.
#### 14. What does the Business Layer do?
Contains service logic, authorization, and validation.
#### 15. What does the Persistence Layer do?
Handles DB transactions and CRUD logic.
#### 16. What does the Database Layer do?
Executes CRUD operations.
#### 17. Difference between DAO in Spring and Spring Boot?
Spring requires DAO and DAOImpl classes; Spring Boot doesn’t.
#### 18. Compare Spring and Spring Boot.
Spring: Manual config, complex setup. Spring Boot: Auto-configured, embedded servers, fast dev.
#### 19. Compare Spring Boot and Spring MVC.
Spring MVC: Manual build, deployment descriptors needed. Spring Boot: Default config, embedded server.
#### 20. What is auto-configuration in Spring Boot?
Spring Boot auto-configures classes based on dependencies.
#### 21. Why is embedded Tomcat useful?
No need for external server installation.
#### 22. What are Spring Boot starters?
Pre-defined dependency sets for various features (web, JPA, security, etc). #### 23. How do starters help? Avoid manual dependency management. E.g., spring-boot-starter-web.