Spring Boot Interview Questions
Spring Boot Interview Questions
Part-1
1. Spring Boot is a Java framework that makes it easier to create and run
Java applications.
2. It simplifies the configuration and setup process, allowing developers to
focus more on writing code for their applications.
3. Spring Boot, a module of the Spring framework, facilitates Rapid
Application Development (RAD) capabilities.
4. Spring Boot solve many developers problem
a. Configurations
b. Dependency Management
c. Embedded Server
d. And many more.
1. Spring Boot Starter Parent is a starter project that provides the default
configuration for spring-based applications.
a. The dependency management feature manages the versions of
common dependencies.
b. Provide the default compiler level as Java 1.8 and UTF-8 source
encoding.
c. Provides a default configuration for Maven plugins such as
maven-surefire-plugin, maven-jar-plugin, and maven-failsafe-plugin.
d. Executes a repackage goal with a repackage execution id.
e. Resource filtering and configuring profile-specific files.
1. YES
2. We don’t inherit from the spring-boot-starter-parent pom.
3. Include the spring-boot-dependencies dependency inside the
dependencyMangement section as an import scope.
>>spring
>>spring help init
>>spring version
>>spring init --dependencies=web,data-jpa my-project
>> spring init --list
Request
client Server
(Browser) (Spring boot)
Thymeleaf
Response Dynamic
page(html)
Learn Code With Durgesh