O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spring Framework Master Class - Beginner to Expert

Video Description

Learn the magic of the Spring Framework in 100 Steps with Spring Boot, Spring JDBC, Spring AOP, JUnit, Mockito and JPA

About This Video

  • The lectures are short enough to introduce the topic and give you sufficient understanding to make it functional.
  • You will learn the essentials of working with Spring, but the course also guides you through Eclipse and some useful shortcuts.

In Detail

Learn the magic of the Spring framework from IOC (Inversion of Control), DI (Dependency Injection), and Application Context, to the world of Spring Boot, AOP, JDBC and JPA. Get set for an incredible journey. In this course, you will learn the features of the Spring and Spring Modules: JDBC, AOP, Data JPA with a hands-on, step-by step-approach. You will be introduced to Spring Boot, Unit Testing with JUnit and Mockito, talking to the database with Spring JDBC and JPA, Maven (dependencies management), Eclipse (IDE), and the Tomcat Embedded Web Server. We will help you set up each one of these. You will learn step-by-step about Spring in more than 100 steps. This course would be a perfect first step as an introduction to Spring.

Table of Contents

  1. Chapter 1 : Welcome to Spring Framework Master Class
    1. Spring Framework Master Class - Preview 00:02:30
  2. Chapter 2 : Quick Introduction to Spring Framework
    1. Quick Introduction to Spring Framework 00:15:49
  3. Chapter 3 : Spring Master Class - Level 1 to Level 6 - Course Overview, Github& More….
    1. Spring Framework Master Class - Overview 00:04:16
  4. Chapter 4 : Spring Level 1 - Introduction to Spring Framework in 10 Steps
    1. Section Introduction - Spring Framework in 10 Steps 00:01:05
    2. Step 1 - Setting up a Spring Project using htttp://start.spring.io 00:04:49
    3. Step 2 - Understanding Tight Coupling using the Binary Search Algorithm Example 00:08:27
    4. Step 3 - Making the Binary Search Algorithm Example Loosely Coupled 00:05:22
    5. Using Spring Framework to Manage Dependencies - @Component, @Autowired 00:11:31
    6. Step 5 - What is happening in the background? 00:06:28
    7. Step 6 - Dynamic auto wiring and Troubleshooting - @Primary 00:04:47
    8. Step 7 - Constructor and Setter Injection 00:04:56
    9. Step 8 - Spring Modules 00:05:05
    10. Step 9 - Spring Projects 00:04:46
    11. Step 10 - Why is Spring Popular? 00:04:15
  5. Chapter 5 : Spring Level 2 - Spring Framework in Depth
    1. Section Introduction - Spring Framework in Depth 00:01:31
    2. Step 11 - Dependency Injection - A few more examples 00:05:42
    3. Step 12 - Autowiring in Depth - by Name and @Primary 00:05:18
    4. Step 13 - Autowiring in Depth - @Qualifier annotation 00:03:27
    5. Step 14 - Scope of a Bean - Prototype and Singleton 00:06:16
    6. Step 15 - Complex Scope Scenarios of a Spring Bean - Mix Prototype and Singleton 00:13:13
    7. Step 15B - Difference between Spring Singleton and GOF Singleton 00:04:08
    8. Step 16 - Using Component Scan to scan for beans 00:07:25
    9. Step 17 - Lifecycle of a Bean - @PostConstruct and @PreDestroy 00:06:10
    10. Step 18 - Container and Dependency Injection (CDI) - @Named, @Inject 00:10:56
    11. Step 19 - Removing Spring Boot in Basic Application 00:08:20
    12. Step 20 - Fixing minor stuff - Add Logback and Close Application Context 00:03:50
    13. Step 21 - Defining Spring Application Context using XML - Part 1 00:06:35
    14. Step 22 - Defining Spring Application Context using XML - Part 2 00:04:27
    15. Step 23 - Mixing XML Context with Component Scan for Beans defined with Annotation 00:08:02
    16. Step 24 - IOC Container vs Application Context vs Bean Factory 00:05:01
    17. Step 25 - @Component vs @Service vs @Repository vs @Controller 00:06:17
    18. Step 26 - Read values from external properties file 00:06:24
  6. Chapter 6 : Basic Tools and Frameworks - JUnit in 5 Steps
    1. Section Introduction - JUnit in 5 Steps 00:00:46
    2. Step 1: What is JUnit and Unit Testing? 00:03:55
    3. Step 2: First JUnit Project and Green Bar 00:04:44
    4. Step 3: First Code and First Unit Test 00:05:07
    5. Step 4: Other assert methods 00:03:46
    6. Step 5: Important annotations 00:05:08
  7. Chapter 7 : Basic Tools and Frameworks - Mockito in 5 Steps
    1. Section Introduction - Mockito in 5 Steps 00:00:51
    2. Step 1: Setting up an example using http://start.spring.io. 00:06:15
    3. Step 2: Using a Stubs – Disadvantages 00:04:11
    4. Step 3: Your first mock with Mockito 00:05:28
    5. Step 4: Using Mockito Annotations - @Mock, @InjectMocks, @RunWith 00:04:35
    6. Step 5: Mocking List interface 00:06:00
  8. Chapter 8 : Spring Level 3 - Unit Testing with Spring Framework
    1. Section Introduction - Unit Testing with Spring Framework 00:01:01
    2. Step 27 - Spring Unit Testing with a Java Context 00:09:53
    3. Spring Unit Testing with an XML Context 00:03:59
    4. Spring Unit Testing with an XML Context 00:10:14
  9. Chapter 9 : Spring Level 4 - Spring Boot in 10 Steps
    1. Section Introduction - Spring Boot in 10 Steps 00:00:47
    2. Step 1: Introduction to Spring Boot - Goals and Important Features 00:06:11
    3. Step 2: Developing Spring Applications before Spring Boot 00:03:46
    4. Step 3: Using Spring Initializr to create a Spring Boot Application 00:04:48
    5. Step 4: Creating a Simple REST Controller 00:05:03
    6. Step 5: What is Spring Boot Auto Configuration? 00:09:07
    7. Step 6: Spring Boot vs Spring vs Spring MVC 00:05:55
    8. Step 7: Spring Boot Starter Projects - Starter Web and Starter JPA 00:07:39
    9. Step 8: Overview of different Spring Boot Starter Projects 00:04:01
    10. Step 9: Spring Boot Actuator 00:08:38
    11. Step 10: Spring Boot Developer Tools 00:04:12
  10. Chapter 10 : Spring Level 5 - Spring AOP
    1. Section Introduction - Spring AOP 00:00:45
    2. Step 01 - Setting up AOP Example - Part 1 00:06:06
    3. Step 02 - Setting up AOP Example - Part 2 00:05:15
    4. Step 03 - Defining a @Before advice 00:07:04
    5. Step 04 - Understand AOP Terminology - Pointcut, Advice, Aspect and Join Point 00:05:21
    6. Step 05 - Using @After, @AfterReturning, @AfterThrowing advices 00:05:22
    7. Step 06 - Using @Around advice to implement performance tracing 00:04:49
    8. Step 07 - Best Practice: Use common Pointcut Configuration 00:03:53
    9. Step 08 - Quick summary of other Pointcuts 00:02:32
    10. Step 09 - Creating Custom Annotation and an Aspect for Tracking Time 00:04:50
  11. Chapter 11 : Spring Level 6 - Interacting with Databases - Spring JDBC, JPA and Spring Data
    1. Section Introduction - Spring JDBC, JPA and Spring Data 00:01:01
    2. Step 01 - Setting up a project with JDBC, JPA, H2 and Web Dependencies 00:05:32
    3. Step 02 - Launching up H2 Console 00:05:05
    4. Step 03 - Creating a Database Table in H2 00:03:54
    5. Step 04 - Populate data into Person Table 00:05:21
    6. Step 05 - Implement findAll persons Spring JDBC Query Method 00:06:15
    7. Step 06 - Execute the findAll method using CommandLineRunner 00:05:45
    8. Step 07 - A Quick Review - JDBC vs Spring JDBC 00:02:41
    9. Step 08 - Whats in the background? Understanding Spring Boot Autoconfiguration 00:05:06
    10. Step 09 - Implementing findById Spring JDBC Query Method 00:03:48
    11. Step 10 - Implementing deleteById Spring JDBC Update Method 00:03:08
    12. Step 11 - Implementing insert and update Spring JDBC Update Methods 00:08:39
    13. Step 12 - Creating a custom Spring JDBC RowMapper 00:04:58
    14. Step 13 - Quick introduction to JPA 00:05:54
    15. Step 14 - Defining Person Entity 00:04:03
    16. Step 15 - Implementing findById JPA Repository Method 00:08:06
    17. Step 16 - Implementing insert and update JPA Repository Methods 00:03:51
    18. Step 17 - Implementing deleteById JPA Repository Method 00:02:10
    19. Step 18 - Implementing findAll using JPQL Named Query 00:04:03
    20. Step 19 - Introduction to Spring Data JPA 00:05:13
    21. Step 20 - Connecting to Other Databases 00:03:12
  12. Chapter 12 : Quick Preview - Web Applications with Spring MVC
    1. Section Introduction - Basic Web Application 00:00:58
    2. Step 01: Setting up Your First Java Web Application 00:09:31
    3. Step 01: Theory 1 - Maven and Magic 00:06:17
    4. Step 01: Theory 2 - What is a Servlet? 00:02:13
    5. Step 01: Theory 3 - Web Application Request Flow 00:07:33
    6. Step 01: Theory 4 - Understand Your First Servlet – LoginServlet 00:06:37
    7. Step 02: Create LoginServlet from Scratch Again and you’re First View 00:12:37
    8. Step 02: Theory - Play Time - Let's Try Breaking Things 00:03:57
    9. Step 03: Passing Request Parameters using Get Method 00:09:12
    10. Step 03: Theory - Introduction and End to Scriptlets 00:05:14
    11. Step 04: Disadvantages of Get Parameters 00:04:05
    12. Step 05: Your First Post Request 00:06:53
    13. Step 06: Your First Servlet doPost Method 00:05:10
    14. Step 07: Let’s Add a Password Field 00:09:10
    15. Step 10: Setting up Maven, Tomcat and Simple JEE Application 00:07:29
    16. Step 11: Setting up Spring MVC with 4 mini steps 00:17:10
    17. Step 12: Your First Spring MVC Controller 00:10:22
    18. Step 13: Part 1 - Your First Spring MVC View: ViewResolver 00:11:11
    19. Step 13: Part 2 - Theory Break - Spring MVC Architecture 00:02:29
    20. Step 13: Part 3 - Play Break - Try Breaking Things 00:03:59
    21. Step 14: Add Logging Framework Log4j 00:07:56
    22. Step 15: Redirect to Welcome Page: ModelMap and @RequestParam 00:13:51
    23. Step 16: Use LoginService to Authenticate 00:08:51
    24. Step 17: Spring Autowiring and Dependency Injection 00:06:15
  13. Chapter 13 : Basic Tools and Frameworks - Eclipse in 5 Steps
    1. Section Introduction - Eclipse in 5 Steps 00:00:41
    2. Step 1: Create a Java Project 00:05:14
    3. Step 2: Keyboard Shortcuts 00:11:35
    4. Step 3: Views and Perspectives 00:06:17
    5. Step 4: Save Actions 00:04:26
    6. Step 5: Code Generation 00:03:14
  14. Chapter 14 : Basic Tools and Frameworks - Maven in 5 Steps
    1. Section Introduction - Maven in 5 Steps 00:00:56
    2. Step 1: Creating and importing a Maven Project 00:05:13
    3. Step 2: Understanding Project Object Model - pom.xml 00:07:39
    4. Step 3: Maven Build Life Cycle 00:07:16
    5. Step 4: How does Maven Work? 00:05:43
    6. Step 5: Important Maven Commands 00:08:07
  15. Chapter 15 : Congratuations
    1. Spring Master Class - Congratulations on Completing the Course 00:00:59