Spring Tutorial For Beginners

Learn the magic of Java Spring Framework with Spring Boot, Spring JDBC, Spring AOP, Hibernate, JUnit & Mockito

Last updated 2022-01-10 | 4.5

- You will Learn Spring Framework the MODERN WAY - The way Real Projects use it!
- You will Become a COMPLETE Spring Developer - With the ability to write Great Unit Tests
- You will Acquire ALL the SKILLS to demonstrate an EXPERTISE with Spring Framework in Your Job Interviews

What you'll learn

You will Learn Spring Framework the MODERN WAY - The way Real Projects use it!
You will Become a COMPLETE Spring Developer - With the ability to write Great Unit Tests
You will Acquire ALL the SKILLS to demonstrate an EXPERTISE with Spring Framework in Your Job Interviews
You will learn the BASICS of Spring - Dependency Injection
IOC Container
Application Context and Bean Factory
You will Become the GO TO GUY for Fixing Spring Framework problems in Your Project
You will GO FROM a Total Beginner to an EXPERIENCED Spring Developer
You will understand how to use Spring Annotations - @Autowired
@Component
@Service
@Repository
@Configuration
@Primary....
You will understand Spring MVC in depth - DispatcherServlet
Model
Controllers and ViewResolver
You will use a variety of Spring Boot Starters - Spring Boot Starter Web
Starter Data Jpa
Starter Test
You will learn the basics of Spring Boot
Spring AOP
Spring JDBC and JPA
You will learn the basics of Eclipse
Maven
JUnit and Mockito
You will develop a basic Web application step by step using JSP Servlets and Spring MVC
You will learn to write unit tests with XML
Java Application Contexts and Mockito

* Requirements

* You have an attitude to learn while having fun :)
* You have some programming experience with Java and Zero experience with Spring

Description

  • You will Learn Spring Framework the MODERN WAY - The way Real Projects use it!
  • You will Become a COMPLETE Spring Developer - With the ability to write Great Unit Tests
  • You will Acquire ALL the SKILLS to demonstrate an EXPERTISE with Spring Framework in Your Job Interviews
  • You will learn the BASICS of Spring - Dependency Injection, IOC Container, Application Context and Bean Factory
  • You will Become the GO TO GUY for Fixing Spring Framework problems in Your Project
  • You will GO FROM a Total Beginner to an EXPERIENCED Spring Developer
  • You will understand how to use Spring Annotations - @Autowired, @Component, @Service, @Repository, @Configuration, @Primary....
  • You will understand Spring MVC in depth - DispatcherServlet , Model, Controllers and ViewResolver
  • You will use a variety of Spring Boot Starters - Spring Boot Starter Web, Starter Data Jpa, Starter Test
  • You will learn the basics of Spring Boot, Spring AOP, Spring JDBC and JPA
  • You will learn the basics of Eclipse, Maven, JUnit and Mockito
  • You will develop a basic Web application step by step using JSP Servlets and Spring MVC
  • You will learn to write unit tests with XML, Java Application Contexts and Mockito

Course content

14 sections • 139 lectures

Section Introduction - Spring Framework in 10 Steps Preview 01:05

Spring Level 1, 2 and 3 - Github Folder Preview 00:02

Step 1 - Setting up a Spring Project using htttp://start.spring.io Preview 04:49

Step 2 - Understanding Tight Coupling using the Binary Search Algorithm Example Preview 08:27

Step 3 - Making the Binary Search Algorithm Example Loosely Coupled Preview 05:22

Step 4 - Using Spring Framework to Manage Dependencies - @Component, @Autowired Preview 11:31

Step 5 - What is happening in the background? Preview 06:28

Step 6 - Dynamic auto wiring and Troubleshooting - @Primary Preview 04:47

Fastest Approach to Solve All Your Exceptions Preview 00:21

Step 7 - Constructor and Setter Injection Preview 04:56

Step 8 - Spring Modules Preview 05:05

Step 9 - Spring Projects Preview 04:46

Step 10 - Why is Spring Popular? Preview 04:15

Section Introduction - Spring Framework in Depth Preview 01:31

Step 11 - Dependency Injection - A few more examples Preview 05:42

Step 12 - Autowiring in Depth - by Name and @Primary Preview 05:18

Step 13 - Autowiring in Depth - @Qualifier annotation Preview 03:27

Step 14 - Scope of a Bean - Prototype and Singleton Preview 06:16

Step 15 - Complex Scope Scenarios of a Spring Bean - Mix Prototype and Singleton Preview 13:05

Step 15B - Difference Between Spring Singleton and GOF Singleton Preview 04:08

Step 16 - Using Component Scan to scan for beans Preview 07:25

Step 17 - Lifecycle of a Bean - @PostConstruct and @PreDestroy Preview 06:10

Step 18 - Container and Dependency Injection (CDI) - @Named, @Inject Preview 10:56

Ignore SLF4J Errors in Step 19 - We will fix them in Step 20 Preview 00:09

As we start removing Spring Boot and bringing in Spring core, you would see 

  • A few SLF4J errors in Step 19.
  • Logging does not work

Do not worry about them. We will fix them in Step 20.

Step 19 - Removing Spring Boot in Basic Application Preview 08:20

Step 20 - Fixing minor stuff - Add Logback and Close Application Context Preview 03:50

Step 21 - Defining Spring Application Context using XML - Part 1 Preview 06:35

Step 22 - Defining Spring Application Context using XML - Part 2 Preview 04:27

Step 23 - Mixing XML Context with Component Scan for Beans defined with Annotati Preview 08:02

Step 24 - IOC Container vs Application Context vs Bean Factory Preview 05:01

Step 25 - @Component vs @Service vs @Repository vs @Controller Preview 06:17

Step 26 - Read values from external properties file Preview 06:24

Section Introduction - JUnit in 5 Steps Preview 00:46

Step 1 : What is JUnit and Unit Testing? Preview 03:55

COURSE UPDATE: JUNIT 5 vs JUNIT 4 Preview 00:11

Step 2 : First JUnit Project and Green Bar Preview 04:44

Step 3 : First Code and First Unit Test Preview 05:07

Step 4 : Other assert methods Preview 03:46

Step 5 : Important annotations Preview 05:08

Section Introduction - Mockito in 5 Steps Preview 00:51

Step 1 : Setting up an example using http://start.spring.io. Preview 06:15

COURSE UPDATE : JUnit 4 vs JUnit 5 Preview 00:10

Step 2 : Using a Stubs - Disadvantages Preview 04:11

Step 3 : Your first mock with Mockito Preview 05:28

Step 4 : Using Mockito Annotations - @Mock, @InjectMocks, @RunWith Preview 04:35

Step 5 : Mocking List interface Preview 06:00

Section Introduction - Unit Testing with Spring Framework Preview 01:01

Step 27 - Spring Unit Testing with a Java Context Preview 09:53

Spring Unit Testing with an XML Context Preview 03:59

Spring Unit Testing with Mockito Preview 10:14

Section Introduction - Spring Boot in 10 Steps Preview 00:47

Step 1 : Introduction to Spring Boot - Goals and Important Features Preview 06:11

Step 2 : Developing Spring Applications before Spring Boot Preview 03:46

Step 3 : Using Spring Initializr to create a Spring Boot Application Preview 04:48

Step 4 : Creating a Simple REST Controller Preview 05:03

Step 5 : What is Spring Boot Auto Configuration? Preview 09:07

Step 6 : Spring Boot vs Spring vs Spring MVC Preview 05:55

Step 7 : Spring Boot Starter Projects - Starter Web and Starter JPA Preview 07:39

Step 8 : Overview of different Spring Boot Starter Projects Preview 04:01

Step 9 : Spring Boot Actuator Preview 08:48

Step 10 : Spring Boot Developer Tools Preview 04:12

Section Introduction - Spring AOP Preview 00:45

Spring AOP Github Folder Preview 00:00

COURSE UPDATE - AOP Dependency Removed From Spring Initializr Preview 00:10

Step 01 - Setting up AOP Example - Part 1 Preview 06:06

Step 02 - Setting up AOP Example - Part 2 Preview 05:15

Step 03 - Defining an @Before advice Preview 07:04

Step 04 - Understand AOP Terminology - Pointcut, Advice, Aspect and Join Point Preview 05:21

Step 05 - Using @After, @AfterReturning, @AfterThrowing advices Preview 05:22

Step 06 - Using @Around advice to implement performance tracing Preview 04:49

Step 07 - Best Practice : Use common Pointcut Configuration Preview 03:53

Step 08 - Quick summary of other Pointcuts Preview 02:32

Step 09 - Creating Custom Annotation and an Aspect for Tracking Time Preview 04:50

Section Introduction - Spring JDBC, JPA and Spring Data Preview 01:01

Spring JDBC to JPA with Hibernate - Github Folder Preview 00:00

Step 01 - Setting up a project with JDBC, JPA, H2 and Web Dependencies Preview 05:32

COURSE UPDATE : H2 Database URL Preview 00:15

Step 02 - Launching up H2 Console Preview 05:01

Updates to Step 03 and Step 04 Preview 00:21

Step 03 - Creating a Database Table in H2 Preview 03:54

Step 04 - Populate data into Person Table Preview 05:21

Step 05 - Implement findAll persons Spring JDBC Query Method Preview 06:15

Step 06 - Execute the findAll method using CommandLineRunner Preview 05:45

Step 07 - A Quick Review - JDBC vs Spring JDBC Preview 02:41

Step 08 - Whats in the background? Understanding Spring Boot Autoconfiguration Preview 05:06

Step 09 - Implementing findById Spring JDBC Query Method Preview 03:48

Step 10 - Implementing deleteById Spring JDBC Update Method Preview 03:08

Step 11 - Implementing insert and update Spring JDBC Update Methods Preview 08:39

Step 12 - Creating a custom Spring JDBC RowMapper Preview 04:58

Step 13 - Quick introduction to JPA Preview 05:54

Step 14 - Defining Person Entity Preview 04:03

Step 15 - Implementing findById JPA Repository Method Preview 08:06

Step 16 - Implementing insert and update JPA Repository Methods Preview 03:51

Step 17 - Implementing deleteById JPA Repository Method Preview 02:10

Step 18 - Implementing findAll using JPQL Named Query Preview 04:03

Step 19 - Introduction to Spring Data JPA Preview 05:13

Step 20 - Connecting to Other Databases Preview 03:12

Section Introduction - Basic Web Application Preview 00:58

Links for the Next Lecture Preview 00:05

Step 01 : Setting up Your First Java Web Application Preview 09:31

Step 01 : Theory 1 - Maven and Magic Preview 06:17

Step 01 : Theory 2 - What is a Servlet? Preview 02:13

Step 01 : Theory 3 - Web Application Request Flow Preview 07:33

Step 01 : Theory 4 - Understand Your First Servlet - LoginServlet Preview 06:37

Step 02 : Create LoginServlet From Scratch Again and Your First View Preview 12:37

Step 02 : Theory - Play Time - Let's Try Breaking Things Preview 03:57

Step 03 : Passing Request Parameters using Get Method Preview 09:12

Step 03 : Theory - Introduction and End to Scriptlets Preview 05:14

Step 04 : Disadvantages of Get Parameters Preview 04:05

Step 05 : Your First Post Request Preview 06:53

Step 06 : Your First Servlet doPost Method Preview 05:10

Step 07 : Lets Add a Password Field Preview 09:10

Step 10 : Setting up Maven,Tomcat and Simple JEE Application Preview 07:29

Links for the Next Lecture Preview 00:03

Step 11 : Setting up Spring MVC with 4 mini steps Preview 17:10

Step 12 : Your First Spring MVC Controller Preview 10:22

Step 13 : Part 1 - Your First Spring MVC View : ViewResolver Preview 11:11

Step 13 : Part 2 - Theory Break - Spring MVC Architecture Preview 02:29

Step 13 : Part 3 - Play Break - Try Breaking Things Preview 03:59

Step 14 : Add Logging Framework Log4j Preview 07:56

Step 15 : Redirect to Welcome Page : ModelMap and @RequestParam Preview 13:51

Step 16 : Use LoginService to Authenticate Preview 08:51

Step 17 : Spring Autowiring and Dependency Injection Preview 06:15

Section Introduction - Eclipse in 5 Steps Preview 00:41

Step 1 : Create a Java Project Preview 05:14

Step 2 : Keyboard Shortcuts Preview 11:35

Step 3 : Views and Perspectives Preview 06:17

Step 4 : Save Actions Preview 04:26

Step 5 : Code Generation Preview 03:14

Section Introduction - Maven in 5 Steps Preview 00:56

Step 1 : Creating and importing a Maven Project Preview 05:13

Step 2 : Understanding Project Object Model - pom.xml Preview 07:39

Step 3 : Maven Build Life Cycle Preview 07:16

Step 4 : How does Maven Work? Preview 05:43

Step 5 : Important Maven Commands Preview 08:07

Bonus Lecture Preview 00:16

Spring Master Class - Congratulations on Completing the Course Preview 00:59