Spring Framework Interview Guide - 200+ Questions and Answers

Video description

Spring and Spring Boot interview guide with 200+ questions and answers, and topics covering REST API, JPA, Hibernate, and Spring Data JPA

About This Video

  • A concise summary with a structured format to grasp important concepts with ease
  • The best course to refresh Spring concepts and syntax in a short time to prepare for the interviews
  • Comes with relevant materials and resource files to reinforce your learning

In Detail

The Spring framework is the most popular Java framework ever. It continues to evolve with changing architectures. Spring Boot is one of the most popular Spring projects and is the most used Java framework to develop RESTful services and microservices.

Preparing for a Spring Interview is tricky. There are a wide variety of Spring modules and Spring projects that you need to recollect and be prepared to answer questions on. You’ll need to get a good understanding of the new features of Spring and have a firm grasp of the concepts you’ve implemented in your projects. This course helps you prepare for Spring interviews with code examples and over 200+ questions and answers.

This course starts with the Spring Application Framework in detail. Next, you will learn about the Spring MVC framework. Later, you will learn about Spring Boot goals, features and various concepts such as auto configuration, starter projects, and so on. In this section, you will learn about Spring Data, Spring JDBC and JPA in detail. After that, you will look at unit and integration testing in Spring. Following that, you will learn about AOP in Spring and SOAP web services in detail. Finally, you will learn about RESTful web services in detail.

By the end of this course, you will get a good refresher on Spring concepts and syntax and become confident before the interviews.

Who this book is for

This course is for individuals who are learning Java and Spring with a view to attending Java and Spring interviews and those who want to add more depth to their Spring knowledge.

This course uses Eclipse as the IDE to demonstrate code examples and you are expected to have programming experience with Java and Spring.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Introduction to the Course
    1. Preview to Spring Interview Guide
    2. Introduction to Our GitHub Repository
    3. Setting Up the Course Presentation
    4. Overview of Spring Interview Guide
  2. Chapter 2 : Spring Framework
    1. Basics of Spring Framework
    2. Spring Application Context and IOC Container
    3. Spring - Component Scan
    4. @Controller, @Component, @Repository, and @Service Annotations
    5. Scope of a Bean
    6. Setter and Constructor Injection
    7. Spring Application Contexts - XML and Java Configuration
    8. Spring and Autowiring
    9. Debugging with Spring Framework. @Primary and @Qualifier
    10. CDI (Contexts and Dependency Injection) and Spring
    11. Spring Major Versions and New Features
    12. Spring Modules
    13. Spring Projects
    14. Spring Design Patterns, BOM and Annotations
    15. Big Picture of Spring Framework
  3. Chapter 3 : Spring MVC
    1. Web Application Architectures - Model 1, Model 2, and Front Controller
    2. Spring MVC High Level Flow
    3. Dispatcher Servlet and Configuration
    4. Form Backing Object, Form Tags, Validation and Binding Result
    5. Path Variable, Model and Session Attributes
    6. Date Format Binding
    7. Exception Handling and Controller Advice
    8. Why is Spring MVC Popular?
  4. Chapter 4 : Spring Boot
    1. Spring Boot - Goals and Features
    2. Spring Boot Versus Spring Versus Spring MVC
    3. @SpringBootApplication
    4. Introduction to Autoconfiguration
    5. Embedded Servers - Tomcat, Jetty, and Undertow
    6. Introduction to Starter Projects
    7. Starter Parent and Dependency Management
    8. Creating Spring Projects with Spring Initializr
    9. Configuration with Application Properties
    10. Custom Application Configuration with @ConfigurationProperties
    11. Spring Boot Profiles
    12. Monitoring your application with Spring Boot Actuator
    13. Do things at application startup with CommandLineRunner
  5. Chapter 5 : Spring Data, Spring JDBC and JPA
    1. Spring JDBC - JdbcTemplate and RowMapper
    2. JPA, Hibernate - Entity and Entity Manager
    3. JPA Relationships - One to One, One to Many, Many to Many
    4. JPA Configuration - Data Source, persistence.xml, and Entity Manager Factory
    5. Spring Data - Need, Overview, and Repository
  6. Chapter 6 : Unit and Integration Testing
    1. Unit Testing with Mockito
    2. Unit Testing Controllers with Mock MVC Framework
    3. Integration Testing with Spring Boot
  7. Chapter 7 : AOP
    1. Introduction to Spring AOP
    2. AOP Basics - Aspect, Pointcut, Advice, and Weaving
  8. Chapter 8 : SOAP Web Services
    1. What is a Web Service?
    2. SOAP Web Service - SOAP Envelope, Header, and Body
    3. SOAP Request Examples - SOAP Header
    4. WSDL - An Overview
    5. Contract First Approach and XSD
    6. JAXB and Configuration with Spring Web Services
    7. Writing an Endpoint with Spring Web Services
    8. MessageDispatcherServlet and Configuration
    9. Generating a WSDL with Spring Web Services
    10. Error Handling for SOAP Web Services
  9. Chapter 9 : RESTful Web Services
    1. What is REST?
    2. Best Practices of RESTful Services
    3. GET Resource method with Spring REST
    4. POST Resource method with Spring REST and ResponseEntity
    5. Implementing HATEOAS for RESTful Web Services
    6. Documenting RESTful Web Services with Swagger
    7. Content Negotiation and Representation of a Resource
    8. Exception Handling and Validation for RESTFul Web Services
    9. Versioning for RESTful Web Services
  10. Chapter 10 : Congratulations
    1. Conclusion to Spring Interview Guide

Product information

  • Title: Spring Framework Interview Guide - 200+ Questions and Answers
  • Author(s): In28Minutes Official
  • Release date: March 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781788992909