Spring Framework 4 And Dependency Injection For Beginners

Spring Framework 4 Getting Started And Dependency Injection Fundamentals Tutorial For Real World Application Development
4.1 (964 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
18,326 students enrolled
Start Learning Now
  • Lectures 16
  • Length 1.5 hours
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 1/2015 English

Course Description

If you are new to Spring Framework, or you know Spring 3 but are new to Spring 4 or Java configuration, take this as your first course.

In this step-by-step video tutorial, we are first going to learn how to quickly create a new Spring application, and then we are going to dive into the fundamentals of the dependency injection (IoC) features of Spring using Java and annotation based configuration, which is going to be extremely useful to you when taking any other course on Spring Framework.

Dependency Injection in Spring Framework is very vast, and a common real world developer needs to be readily knowing only a handful of commonly useful features. We are going to cover that handful of useful things here, to get you started developing real world applications fast. Later, when you need, you can always refer to Spring's documentation for the less commonly used features.

That said, here we are going to cover many key features useful in real world development, like Spring profiles, externalizing configuration etc., which are important for real world development, but you will not find those covered in many other tutorials.

Also, as a bonus, I am going to show you how simple it has become to send SMTP mails after the release of Spring Boot 1.2.

If you are new to Spring 4 and Java configuration, I would highly recommend that before taking any other Spring course, you should take this course first.

You should be knowing Java to be able to follow this course. Knowledge of web development will help, because in some examples we have used a bit of Spring MVC, but is not needed.

While going through this tutorial and later, you'll be needing the e-book "Spring Framework 4 Getting Started And Dependency Injection For Beginners" as the reference material. It's FREE now, and the first lesson has instructions on how to get it.

What are the requirements?

  • Prior knowledge of Java - classes and interfaces
  • Web development knowledge would help a little, but isn't needed

What am I going to get from this course?

  • Create new spring applications in the quickest way
  • Use Java and annotation based dependency injection effectively
  • Configure custom external properties and beans for different environments
  • Send SMTP mails in the right way using Spring Boot 1.2
  • Dive confidently onto learning Spring further

Who is the target audience?

  • Java developers new to Spring Framework
  • Spring 3 developers new to Spring 4 or Java configuration

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction
Section 2: Hello, World
Creating A New Spring Project
Hello, World
Section 3: Dependency Injection (IoC) Step-By-Step - Part I
Setting The Stage
Dependency Injection - The Basic Concepts
Dependency Injection By Name And By Type
The Multiple Bean Problem
Property, Setter And Constructor Injection
Java Configuration Classes
Section 4: Dependency Injection (IoC) Step-By-Step - Part II
Externalizing Configuration Using application.properties
Spring Profiles
Conditional Annotations
Sending SMTP Mails
Java Configuration Classes contd.
Next Steps
Links To My Spring Course And Other Tutorials, With Huge Discounts!

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Sanjay Patel, Software Architect And Developer

Sanjay has about 22 years of programming and leading experience. Since 2009, he is working on the Java and Spring Framework stack full time, and is the lead developer of Spring Lemon.

Presently he is working as the principal technical lead of Bridgeton Research, Inc.. Prior to joining Bridgeton, he was the technical director of RAD Solutions Private Limited, doing research on open source tools, frameworks, patterns and methodologies for rapid application development. Previously, he was a project leader at Cambridge Solutions and an assistant manager at L & T Limited. He is an MCA from Osmania University and a B. Sc. (Physics) from Sambalpur University, India.

He is also a brilliant teacher, with about 20K students enrolled in his video tutorials and books.

Ready to start learning?
Start Learning Now