Spring Core, MVC, Boot, Data, Rest Ques
Spring Core, MVC, Boot, Data, Rest Ques
Spring Core, MVC, Boot, Data, Rest Ques
Spring MVC
What is Model 1 architecture?
What is Model 2 architecture?
What is Model 2 Front Controller architecture?
Can you show an example controller method in Spring MVC?
Can you explain a simple flow in Spring MVC?
What is a ViewResolver?
What is Model?
What is ModelAndView?
What is a RequestMapping?
What is Dispatcher Servlet?
How do you set up Dispatcher Servlet?
What is a form backing object?
How is validation done using Spring MVC?
What is BindingResult?
How do you map validation results to your view?
What are Spring Form Tags?
What is a Path Variable?
What is a Model Attribute?
What is a Session Attribute?
What is a init binder?
How do you set default date format with Spring?
Why is Spring MVC so popular?
Spring Boot
What is Spring Boot?
What are the important Goals of Spring Boot?
What are the important Features of Spring Boot?
Compare Spring Boot vs Spring?
Compare Spring Boot vs Spring MVC?
What is the importance of @SpringBootApplication?
What is Auto Configuration?
How can we find more information about Auto Configuration?
What is an embedded server? Why is it important?
What is the default embedded server with Spring Boot?
What are the other embedded servers supported by Spring Boot?
What are Starter Projects?
Can you give examples of important starter projects?
What is Starter Parent?
What are the different things that are defined in Starter Parent?
How does Spring Boot enforce common dependency management for all its Starter
projects?
What is Spring Initializr?
What is application.properties?
What are some of the important things that can customized in application.properties?
How do you externalize configuration using Spring Boot?
How can you add custom application properties using Spring Boot?
What is @ConfigurationProperties?
What is a profile?
How do you define beans for a specific profile?
How do you create application configuration for a specific profile?
How do you have different configuration for different environments?
What is Spring Boot Actuator?
How do you monitor web services using Spring Boot Actuator?
How do you find more information about your application envrionment using Spring
Boot?
What is a CommandLineRunner?
Spring Data
What is Spring Data?
What is the need for Spring Data?
What is Spring Data JPA?
What is a CrudRepository?
What is a PagingAndSortingRepository?
Unit Testing
How does Spring Framework Make Unit Testing Easy?
What is Mockito?
What is your favorite mocking framework?
How do you do mock data with Mockito?
What are the different mocking annotations that you worked with?
What is MockMvc?
What is @WebMvcTest?
What is @MockBean?
How do you write a unit test with MockMVC?
What is JSONAssert?
How do you write an integration test with Spring Boot?
What is @SpringBootTest?
What is @LocalServerPort?
What is TestRestTemplate?
AOP
What are cross cutting concerns?
How do you implement cross cutting concerns in a web application?
If you would want to log every request to a web application, what are the options you can
think of?
If you would want to track performance of every request, what options can you think of?
What is an Aspect and Pointcut in AOP?
What are the different types of AOP advices?
What is weaving?
Compare Spring AOP vs AspectJ?
Getting Started
Eclipse - https://courses.in28minutes.com/p/eclipse-tutorial-for-beginners
Maven - https://courses.in28minutes.com/p/maven-tutorial-for-beginners-in-5-steps
JUnit - https://courses.in28minutes.com/p/junit-tutorial-for-beginners
Mockito - https://courses.in28minutes.com/p/mockito-for-beginner-in-5-steps
Installing Tools
Installation Video :
https://www.youtube.com/playlist?list=PLBBog2r6uMCSmMVTW_QmDLyASBvovyA
O3
GIT Repository For Installation : https://github.com/in28minutes/getting-started-in-5-
steps
PDF : https://github.com/in28minutes/SpringIn28Minutes/blob/master/InstallationGuide-
JavaEclipseAndMaven_v2.pdf
Git Repository
http://github.com/in28minutes/spring-interview-guide
Presentation
Downlad the zip or clone the git
Unzip the zip file
Go to folder 1.presentation
Launch spring-interview-questions.html in your favorite browser
Running Examples
Download the zip or clone the Git repository.
Unzip the zip file (if you downloaded one)
Open Command Prompt and Change directory (cd) to folder containing pom.xml
Open Eclipse
o File -> Import -> Existing Maven Project -> Navigate to the folder where you
unzipped the zip
o Select the right project
Choose the Spring Boot Application file (search for file with @SpringBootApplication)
Right Click on the file and Run as Java Application
You are all Set
For help : use our installation guide -
https://www.youtube.com/playlist?list=PLBBog2r6uMCSmMVTW_QmDLyASBvovyA
O3
Requirements
We use Eclipse as the IDE to demonstrate 100 code examples
You should have some programming experience with Java and Spring