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

SpringBoot_Interview_QA

Spring Boot is an extension of the Spring Framework that simplifies application development with features like auto-configuration, embedded servers, and starter dependencies. Configuration settings are stored in application.properties or application.yml files. Auto-configuration automatically sets up beans based on the classpath and properties, enhancing productivity in Spring-based applications.

Uploaded by

3 Muskeeters
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

SpringBoot_Interview_QA

Spring Boot is an extension of the Spring Framework that simplifies application development with features like auto-configuration, embedded servers, and starter dependencies. Configuration settings are stored in application.properties or application.yml files. Auto-configuration automatically sets up beans based on the classpath and properties, enhancing productivity in Spring-based applications.

Uploaded by

3 Muskeeters
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Spring Boot Interview Questions and Answers

1. What is Spring Boot, and how does it differ from the Spring Framework?
Spring Boot is an extension of the Spring Framework that simplifies the development of
Spring-based applications.
Example:
@SpringBootApplication
public class MyApp {
public static void main(String[] args) {
SpringApplication.run(MyApp.class, args);
}
}

2. What are the key features of Spring Boot?


- Auto-configuration
- Embedded servers (Tomcat, Jetty, Undertow)
- Starter dependencies
- Production-ready features (Actuator, Metrics, Health Checks)
- Microservices support

3. What is the role of application.properties or application.yml?


These files store application configurations like port, database settings, and security properties.
Example (application.properties):
server.port=8081
datasource.url=jdbc:mysql://localhost:3306/mydb

4. What is auto-configuration in Spring Boot?


Spring Boot automatically configures beans based on the classpath and properties.
Example:
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})

You might also like