1) What is Spring Boot?
2) What are the Features of Spring Boot?
3) What are the advantages of using Spring Boot?

4) Define the Key Components of Spring Boot.

5) Why do we prefer Spring Boot over Spring?
FROM QUESTION 1 TO 5 SAME ANSWER :
6) Explain the internal working of Spring Boot.
7) What are the Spring Boot Starter Dependencies?

8) How does a Spring application get started?
9) What does the @SpringBootApplication annotation do internally?
10) What is Spring Initializr?
11) What is a Spring Bean?
12) What is Auto-wiring?

13) What is ApplicationRunner in SpringBoot?

14) What is CommandLineRunner in SpringBoot?
SAME AS APPLICATIONRUNNER IT IS RUN CUSTOM CODE

15) What is Spring Boot CLI and the most used CLI commands?

16) What is Spring Boot dependency management?

17) Is it possible to change the port of the embedded Tomcat server in Spring Boot?

18) What happens if a starter dependency includes conflicting versions of libraries with other
dependencies in the project?
SPRING BOOT DEPENDENCY MANAGEMENT THIK KAR DEGA

19) What is the default port of Tomcat in Spring Boot?
8080
20) Can we disable the default web server in a Spring Boot application?

21) How to disable a specific auto-configuration class?

22) Can we create a non-web application in Spring Boot?

23) Describe the flow of HTTPS requests through a Spring Boot application.

24) Explain @RestController annotation in Spring Boot.

25) Difference between @Controller and @RestController
@.Controller: old use in mvc model , view page , frontend on server side
@.RestController: new concept ,data in json , fronend like react and angular (frontend not on server side )
26) What is the difference between RequestMapping and GetMapping?
RequestMapping : old
GetMapping : new
27) What are the differences between @SpringBootApplication and @EnableAutoConfiguration
annotation?
meta annotation hai springbootapplication ==> annotation ki upar annotation
SpringBootApplication ==> do all things auto-config,configuration,scanning
EnableAutoConfiguration ==> only one kam auto-config
28) How can you programmatically determine which profiles are currently active in a Spring Boot
application?

29) Mention the differences between WAR and embedded containers.
WAR ==> OLD
EMBEDDED CONTAINERS==>NEW
30) What is Spring Boot Actuator?
31) How to enable Actuator in Spring Boot?

32) How to get the list of all the beans in our Spring Boot application?

33) Can we check the environment properties in our Spring Boot application? Explain how

34) How to enable debugging log in the Spring Boot application?

35) Explain the need of dev-tools dependency.

36) How do you test a Spring Boot application?


37) What is the purpose of unit testing in software development?

38) How do JUnit and Mockito facilitate unit testing in Java projects?

39) Explain the difference between @Mock and @InjectMocks in Mockito.?
40) What is the role of @SpringBootTest annotation?

41) How do you handle exceptions in Spring Boot applications?

42) Explain the purpose of the pom.xml file in a Maven project.
43) How auto configuration play an important role in springboot application?

44) Can we customize a specific auto-configuration in springboot?

45) How can you disable specific auto-configuration classes in Spring Boot?

46) What is the purpose of having a spring-boot-starter-parent?

47) How do starters simplify the Maven or Gradle configuration?

48) How do you create REST APIs?

49) What is versioning in REST? What are the ways that we can use to implement versioning?

50) What are the REST API Best practices ?

51) What are the uses of ResponseEntity?

52) What should the delete API method status code be?
54) How does Swagger help in documenting APIs?

55) What all servers are provided by springboot and which one is default?

56) How does Spring Boot decide which embedded server to use if multiple options are available
in the classpath?
57) How can we disable the default server and enable the different one?
Spring Boot Important Annotations
Cross-Question: Can we use @Component instead of @Repository and @Service? If yes
then why do we use @Repository and @Service?

















































































Top comments (0)