Spring Framework Master Class: Java Spring - The Modern Way

Video description

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.

What you will learn

  • Understand the ecosystem of the Spring framework
  • Use Spring Initializer to create a Spring Boot application
  • Distinguish between Spring Boot, Spring, and Spring MVC
  • Set up a project with JDBC, JPA, H2, and web dependencies
  • Create and import a Maven project
  • Perform unit testing with the Spring framework

Audience

Whether you want to learn the basics of the Spring framework with practical examples, develop testable applications with Spring, or understand basic Spring modules such as AOP and JDBC, you’ll find this course useful. A basic understanding of Java is necessary to get started with this course.

About the Author

In28Minutes Official: Ranga Karanam is an architect who has 15 years of experience in Java programming and design with major banking clients across the world. He started In28Minutes with the aim of creating hands-on courses with real-world projects. The step-by-step series of courses is one of his creations. They use a problem-solution-based approach with practical and real-world application examples. While their primary expertise is in development, design, and the architecture of Java and related frameworks (Spring, Spring Boot, Spring MVC, Struts, and Hibernate), they are expanding into the front-end world (Bootstrap, JQuery, and Angular JS). They love open source and therefore, all their code is open source too, available on GitHub. They use the 80-20 Rule, touching upon other things to briefly equip you with enough knowledge to find out more on your own.

Table of contents

  1. Chapter 1 : Quick Introduction to the Spring Framework
    1. Quick Introduction to the Spring Framework
  2. Chapter 2 : Spring Master Class - Level 1 to Level 6 - Course Overview, GitHub More...
    1. Spring Framework Master Class - Overview
  3. Chapter 3 : 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?
  4. Chapter 4 : 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 Close 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
  5. Chapter 5 : Basic Tools and Frameworks - JUnit in 5 Steps
    1. Step 1 – What is JUnit and Unit Testing?
    2. Step 2 – First JUnit Project and Green Bar
    3. Step 3 – First Code and First Unit Test
    4. Step 4 – Other Assert Methods
    5. Step 5 – Important Annotations
  6. Chapter 6 : 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
  7. Chapter 7 : 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
  8. Chapter 8 : Spring Level 4 - Spring Boot in 12 Steps
    1. Step 01 - Getting Started with Spring Boot - Goals
    2. Step 02 - Understanding the World Before Spring Boot - 10000 Feet Overview
    3. Step 03 - Setting up New Spring Boot Project with Spring Initializr
    4. Step 04 - Build a Hello World API with Spring Boot
    5. Step 05 - Understanding the Goal of Spring Boot
    6. Step 06 - Understanding Spring Boot Magic - Spring Boot Starter Projects
    7. Step 07 - Understanding Spring Boot Magic - Auto Configuration
    8. Step 08 - Build Faster with Spring Boot DevTools
    9. Step 09 - Get Production Ready with Spring Boot - 1 - Profiles
    10. Step 10 - Get Production Ready with Spring Boot - 2 - ConfigurationProperties
    11. Step 11 - Get Production Ready with Spring Boot - 3 - Embedded Servers
    12. Step 12 - Get Production Ready with Spring Boot - 4 - Actuator
    13. Step 13 - Understanding Spring Boot vs Spring vs Spring MVC
    14. Step 14 - Getting Started with Spring Boot - Review
  9. Chapter 9 : 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
  10. Chapter 10 : 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
  11. Chapter 11 : 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
  12. Chapter 12 : 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
  13. Chapter 13 : Basic Tools and Framework - Maven in 13 Steps
    1. Step 01 - Introduction to Maven
    2. Step 02 - Creating a Spring Boot Project with Maven
    3. Step 03 - Exploring Maven pom.xml for Spring Boot Project
    4. Step 04 - Exploring Maven Parent Pom for Spring Boot Project
    5. Step 05 - Exploring Maven Further
    6. Step 06 - Exploring Maven Build Lifecycle with a Spring Boot Project
    7. Step 07 - How does Maven Work?
    8. Step 08 - Playing with Maven Commands
    9. Step 09 - How are Spring Projects Versioned?
  14. Chapter 14 : Basic Tools and Framework - Gradle in 5 Steps
    1. Step 01 - Getting Started with Gradle
    2. Step 02 - Creating a Spring Boot Project with Gradle
    3. Step 03 - Exploring Gradle Build and Settings Files
    4. Step 04 - Exploring Gradle Plugins for Java and Spring Boot
    5. Step 05 - Maven or Gradle - Which one to use for Spring Boot Projects?
  15. Chapter 15 : 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: April 2024
  • Publisher(s): Packt Publishing
  • ISBN: 9781788994576