GitHub - In28minutes - Spring-Interview-Guide - 200+ Questions and Answers On Spring, Spring Boot and Spring MVC
GitHub - In28minutes - Spring-Interview-Guide - 200+ Questions and Answers On Spring, Spring Boot and Spring MVC
Dismiss
Join GitHub today
GitHub is home to over 28 million developers working together to host
and review code, manage projects, and build software together.
Sign up
200+ Questions and Answers on Spring, Spring Boot and Spring MVC
Ranga Rao Karanam and Ranga Rao Karanam I'm too lazy to put in a comment Latest commit 008b31d on Mar 19
notes.md updating -4.0 xsd from spring xsd URL a year ago
readme.md
Preparing for Spring Interview is tricky. There are wide variety of Spring Modules and Spring Projects you would need to
recollect and be prepared to answer questions on.You would need to get a good understanding of the new features of Spring
and have firm grasp of the concepts you implemented in your projects.
This course helps you prepare for Spring Interview with code examples covering 200+ Spring Interview Questions and Answers
on Spring, Spring Boot, Spring MVC, Spring JDBC, JPA, AOP, RESTful Services and SOAP Web Services.
Spring
What is Loose Coupling?
What is a Dependency?
What is IOC (Inversion of Control)?
What is Dependency Injection?
Can you give few examples of Dependency Injection?
What is Auto Wiring?
What are the important roles of an IOC Container?
What are Bean Factory and Application Context?
Can you compare Bean Factory with Application Context?
How do you create an application context with Spring?
How does Spring know where to search for Components or Beans?
What is a Component Scan?
How do you define a component scan in XML and Java Configurations?
How is it done with Spring Boot?
What does @Component signify?
What does @Autowired signify?
What’s the difference Between @Controller, @Component, @Repository, and @Service Annotations in Spring?
What is the default scope of a bean?
Are Spring beans thread safe?
What are the other scopes available?
How is Spring’s singleton bean different from Gang of Four Singleton Pattern?
What are the different types of dependency injections?
What is setter injection?
What is constructor injection?
How do you choose between setter and constructor injections?
What are the different options available to create Application Contexts for Spring?
What is the difference between XML and Java Configurations for Spring?
How do you choose between XML and Java Configurations for Spring?
How does Spring do Autowiring?
What are the different kinds of matching used by Spring for Autowiring?
How do you debug problems with Spring Framework?
How do you solve NoUniqueBeanDefinitionException?
How do you solve NoSuchBeanDefinitionException?
What is @Primary?
What is @Qualifier?
What is CDI (Contexts and Dependency Injection)?
Does Spring Support CDI?
Would you recommed to use CDI or Spring Annotations?
What are the major features in different versions of Spring?
What are new features in Spring Framework 4.0?
What are new features in Spring Framework 5.0?
What are important Spring Modules?
What are important Spring Projects?
What is the simplest way of ensuring that we are using single version of all Spring related dependencies?
Name some of the design patterns used in Spring Framework?
What do you think about Spring Framework?
Why is Spring Popular?
Can you give a big picture of the Spring Framework?
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
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_QmDLyASBvovyAO3
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
File -> Import -> Existing Maven Project -> Navigate to the folder where you unzipped the zip
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_QmDLyASBvovyAO3
Requirements
We use Eclipse as the IDE to demonstrate 100 code examples
You should have some programming experience with Java and Spring
Other Courses
Check out all our courses with 100,000 Students
25 Videos and Articles for Beginners on Spring Boot
Our Best Courses with 66,000 Students and 4,000 5-Star Ratings
Java Interview Guide : 200+ Interview Questions and Answers
First Web Application with Spring Boot
Spring Boot Tutorial For Beginners
Mockito Tutorial : Learn mocking with 25 Junit Examples
Java EE Made Easy - Patterns, Architecture and Frameworks
Spring MVC For Beginners : Build Java Web App in 25 Steps
JSP Servlets For Beginners : Build Java Web App in 25 Steps
Maven Tutorial - Manage Java Dependencies in 25 Steps
Java OOPS in 1 Hours
C Puzzle for Interview
Useful Links
Our Website
Facebook
Twitter
Google Plus