Spring Framework Master Class - Java Spring the Modern Way

Video description

Explore Spring Boot, Spring JDBC, Spring AOP, and more and get hands-on with Spring development

About This Video

  • Gain the skills you need to work effectively with the Spring framework
  • Learn how to tackle various challenges in your project
  • Develop the ability to write flawless unit test

In Detail

Do you want to get well-versed with the Spring framework and become a modern Spring developer? This course is designed to help you learn the Spring framework in 10 easy steps!

The course starts with the basics of the Spring framework, enabling you to understand dependency injection, IOC container, application context, and BeanFactory. Next, you will use Spring annotations to configure dependencies through Java programs and delve into the concepts of Spring MVC. Moving ahead, you will learn the basics of Spring Boot, Eclipse, Spring AOP, Spring JDBC and JPA, Maven, JUnit, and Mockito. Later, you will understand the development process of a web application using JSP servlets and Spring MVC. Finally, you will focus on how to execute unit testing cases with JUnit and Mockito using XML and Java Spring application contexts.

By the end of this course, you will have learned Spring framework concepts and have developed the skills you need to use them confidently in Java projects.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Quick Introduction to the Spring Framework
    1. Quick Introduction to the Spring Framework
  2. Chapter 2 : Spring Level 1 - Introduction to the Spring Framework in 10 Steps
    1. Section Introduction - Spring Framework in 10 Steps
    2. Step 1 – Setting Up a Project Using https://start.spring.io
    3. Step 2 – Understanding Tight Coupling Using the Binary Search Algorithm Example
    4. Step 3 - Making the Binary Search Algorithm Example Loosely Coupled
    5. Step 4 - Using the Spring Framework to Manage Dependencies - @Component and @Autowired
    6. Step 5 - What is Happening in the Background?
    7. Step 6 - Dynamic Autowiring and Troubleshooting - @Primary
    8. Step 7 - Constructor and Setter Injection
    9. Step 8 - Spring Modules
    10. Step 9 - Spring Projects
    11. Step 10 - Why is Spring Popular?
  3. Chapter 3 : Spring Level 2 - Spring Framework in Depth
    1. Section Introduction - Spring Framework in Depth
    2. Step 11 - Dependency Injection - A Few More Examples
    3. Step 12 - Autowiring in Depth - By Name and @Primary
    4. Step 13 - Autowiring in Depth - @Qualifier Annotation
    5. Step 14 - Scope of a Bean - Prototype and Singleton
    6. Step 15 - Complex Scope Scenarios of a Spring Bean - Mix Prototype and Singleton
    7. Step 15B - Difference Between the Spring Singleton and GOF Singleton
    8. Step 16 - Using the Component Scan to Scan for Beans
    9. Step 17 - Lifecycle of a Bean - @PostConstruct and @PreDestroy
    10. Step 18 - Container and Dependency Injection (CDI) - @Named and @Inject
    11. Step 19 - Removing Spring Boot in the Basic Application
    12. Step 20 - Fixing Minor Stuff - Add Logback and ApplicationContext
    13. Step 21 - Defining the Spring ApplicationContext Using XML - Part 1
    14. Step 22 - Defining Spring ApplicationContext using XML - Part 2
    15. Step 23 - Mixing the XML Context with a Component Scan for Beans Defined with Annotation
    16. Step 24 - IOC Container vs ApplicationContext vs BeanFactory
    17. Step 25 - @Component vs @Service vs @Repository vs @Controller
    18. Step 26 - Reading Values From the External Properties File
  4. Chapter 4 : Basic Tools and Frameworks - JUnit in 5 Steps
    1. Section Introduction - JUnit in 5 Steps
    2. Step 1 – What is JUnit and Unit Testing?
    3. Step 2 – First JUnit Project and Green Bar
    4. Step 3 – First Code and First Unit Test
    5. Step 4 – Other Assert Methods
    6. Step 5 – Important Annotations
  5. Chapter 5 : Basic Tools and Frameworks - Mockito in 5 Steps
    1. Section Introduction - Mockito in 5 Steps
    2. Step 1 – Setting Up an Example Using http://start.spring.io.
    3. Step 2 – Using Stubs - Disadvantages
    4. Step 3 – Your First Mock with Mockito
    5. Step 4 – Using Mockito Annotations - @Mock, @InjectMocks, and @RunWith
    6. Step 5 – Mocking List Interface
  6. Chapter 6 : Spring Level 3 - Unit Testing with the Spring Framework
    1. Section Introduction - Unit Testing with Spring Framework
    2. Step 27 - Spring Unit Testing with a Java Context
    3. Spring Unit Testing with an XML Context
    4. Spring Unit Testing with Mockito
  7. Chapter 7 : Spring Level 4 – Sprint Boot in 10 Steps
    1. Section Introduction - Spring Boot in 10 Steps
    2. Step 1 – Introduction to Spring Boot - Goals and Important Features
    3. Step 2 – Developing the Spring Applications Before Spring Boot
    4. Step 3 – Using Spring Initializr to Create a Spring Boot Application
    5. Step 4 – Creating a Simple REST Controller
    6. Step 5 – What is the Spring Boot Auto-configuration?
    7. Step 6 – Spring Boot vs Spring Vs Spring MVC
    8. Step 7 – Spring Boot Starter Projects - Starter Web and Starter JPA
    9. Step 8 – Overview of Different Spring Boot Starter Projects
    10. Step 9 – Spring Boot Actuator
    11. Step 10 – Spring Boot Developer Tools
  8. Chapter 8 : Spring Level 5 - Spring AOP
    1. Section Introduction - Spring AOP
    2. Step 01 - Setting Up AOP Example - Part 1
    3. Step 02 - Setting Up AOP Example - Part 2
    4. Step 03 - Defining an @Before Advice
    5. Step 04 – Understanding the AOP Terminology - Pointcut, Advice, Aspect, and JoinPoint
    6. Step 05 - Using the @After, @AfterReturning, @AfterThrowing Advices
    7. Step 06 – Using the @Around Advice to Implement Performance Tracing
    8. Step 07 - Best Practice – Using Common Pointcut Configuration
    9. Step 08 - Quick Summary of Other Pointcuts
    10. Step 09 - Creating Custom Annotation and an Aspect for Tracking Time
  9. Chapter 9 : Spring Level 6 - Interacting with Databases - Spring JDBC, JPA, and Spring Data
    1. Section Introduction - Spring JDBC, JPA, and Spring Data
    2. Step 01 - Setting Up a Project with JDBC, JPA, H2, and the Web Dependencies
    3. Step 02 - Launching an H2 Console
    4. Step 03 - Creating a Database Table in H2
    5. Step 04 - Populating Data into a Person Table
    6. Step 05 – Implementing the findAll persons Spring JDBC Query Method
    7. Step 06 - Executing the findAll Method Using CommandLineRunner
    8. Step 07 - A Quick Review - JDBC vs Spring JDBC
    9. Step 08 – What is in the Background? - Understanding Spring Boot Autoconfiguration
    10. Step 09 – Implementing the findById Spring JDBC Query Method
    11. Step 10 - Implementing the deleteById Spring JDBC Update Method
    12. Step 11 - Implementing Insert and Update for the Spring JDBC Update Methods
    13. Step 12 - Creating a Custom Spring JDBC RowMapper
    14. Step 13 - Quick Introduction to JPA
    15. Step 14 - Defining the Person Entity
    16. Step 15 - Implementing the findById JPA Repository Method
    17. Step 16 - Implementing Insert and Update Using the JPA Repository Methods
    18. Step 17 - Implementing the deleteById JPA Repository Method
    19. Step 18 - Implementing the findAll Using a JPQL Named Query
    20. Step 19 - Introduction to the Spring Data JPA
    21. Step 20 - Connecting to Other Databases
  10. Chapter 10 : Quick Preview – Web Applications with Spring MVC
    1. Section Introduction - Basic Web Application
    2. Step 01 – Setting Up Your First Java Web Application
    3. Step 01 – Theory 1 - Maven and Magic
    4. Step 01 – Theory 2 - What is a Servlet?
    5. Step 01 – Theory 3 - Web Application Request Flow
    6. Step 01 – Theory 4 - Understanding Your First Servlet - LoginServlet
    7. Step 02 – Creating LoginServlet From Scratch Again and Your First View
    8. Step 02 – Theory - Play Time - Trying to Break the Code
    9. Step 03 – Passing the Request Parameters Using the Get Method
    10. Step 03 – Theory - Introduction and End to Scriptlets
    11. Step 04 – Disadvantages of the Get Parameters
    12. Step 05 – Your First POST Request
    13. Step 06 – Your First Servlet doPost Method
    14. Step 07 – Adding a Password Field
    15. Step 10 – Setting Up Maven, Tomcat, and a Simple JEE Application
    16. Step 11 – Setting Up Spring MVC with 4 Mini Steps
    17. Step 12 – Your First Spring MVC Controller
    18. Step 13 – Part 1 - Your First Spring MVC View – ViewResolver
    19. Step 13 – Part 2 - Theory Break - Spring MVC Architecture
    20. Step 13 – Part 3 - Play Break – Trying to Break Things
    21. Step 14 – Adding the Logging Framework Log4j
    22. Step 15 – Redirecting to the Welcome Page – ModelMap and @RequestParam
    23. Step 16 – Using LoginService to Authenticate
    24. Step 17 – Spring Autowiring and Dependency Injection
  11. Chapter 11 : Basic Tools and Framework - Eclipse in 5 steps
    1. Section Introduction - Eclipse in 5 Steps
    2. Step 1 – Creating a Java Project
    3. Step 2 – Keyboard Shortcuts
    4. Step 3 – Views and Perspectives
    5. Step 4 – Save Actions
    6. Step 5 – Code Generation
  12. Chapter 12 : Basic Tools and Framework - Maven in 5 Steps
    1. Section Introduction - Maven in 5 Steps
    2. Step 1 – Creating and Importing a Maven Project
    3. Step 2 – Understanding Project Object Model pom.xml
    4. Step 3 – Maven Build Life Cycle
    5. Step 4 – How does Maven Work?
    6. Step 5 – Important Maven Commands
  13. Chapter 13 : Congratulations
    1. Spring Master Class – Congratulations on Completing the Course

Product information

  • Title: Spring Framework Master Class - Java Spring the Modern Way
  • Author(s): In28Minutes Official
  • Release date: March 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781788994576