Java EE Programming: Spring 3.0, Part 1 of 7
Interactive

Java EE Programming: Spring 3.0, Part 1 of 7

LearnNow Online
Updated Oct 25, 2018

Course description

The Spring framework is an application framework that provides a lightweight container that supports the creation of simple to complex components in a non-invasive fashion. The Spring flexibility and transparency is congruent and supportive of incremental development and testing. The framework structure supports the layering of functionality such as persistence, transactions, view-oriented frameworks, and enterprise systems and capabilities. Spring makes JavaEE development easier. Spring simplifies common tasks and encourages good design based on programming to interfaces. Spring makes your application easier to configure and reduces the need for many JEE design patterns. Spring puts the OO design back into your JEE application. This Spring course will take an in-depth tour of the basic Spring framework, initially examining concepts such as Inversion of Control and Dependency Injection, and then working with the container and basic components. The improved Spring 3.0 configuration management options centered on the Spring Expression Language (SPEL) is covered. The course then moves into the areas of persistence and transactions, looking at various options including both JDBC and Hibernate. You will then look at options for handling the view portion of MVC web architecture.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

This an intermediate- level Spring 3.0 training course, designed for developers who need to understand how and when to use Spring in Java and JEE applications. You should have practical basic Java development experience.


Meet the expert

Greg Matus

Greg Matus combines his practical programming skills and mentoring excellence to develop the highest quality educational programs available. His technical focus includes developing programs and projects focused around advanced application development, performance, and tuning skills and technologies. His specialties include Java, advanced J2EE / JEE, AJAX, XML, Web Services, JSP, SQL, JDBC and Database topics, Oracle, Eclipse, WebLogic, and more.

Video Runtime

190 Minutes

Time to complete

250 Minutes

Course Outline

Intro to Spring

Introduction (04:05)

  • Introduction (04:24)
  • Introduction to Spring (02:44)
  • Benefits of Spring (04:54)
  • Drawbacks: Traditional Java EE (03:28)
  • Spring Framework: Goals (02:50)
  • Nature of POJOs (01:42)
  • Spring Architecture (00:45)
  • Key Features of Spring (02:35)
  • Core Spring Principles (01:10)
  • Configuring Spring (01:56)
  • POJOs and Interfaces: Problems (01:25)
  • POJOs and Interfaces (03:25)
  • Spring is an Object Factory (06:46)
  • Dependency Injection (02:26)
  • Dependency Injection: Example (08:50)
  • Complete Example (01:25)
  • Demo: Intro to Spring (12:17)
  • Summary (00:56)
Configuration

Spring Configuration (32:55)

  • Introduction (00:59)
  • Dependency Injection & Testing (01:58)
  • Testing with Mocks (01:40)
  • Testing with Mocks: UML Diagram (01:42)
  • Spring Architecture (00:11)
  • Spring Jars (01:07)
  • Demo: Spring Jars (00:43)
  • Spring DI Container (03:40)
  • Initializing the Container (02:01)
  • Accessing Beans: Container (01:30)
  • Demo: Accessing Beans (01:16)
  • Configuring Objects: Spring (01:44)
  • XML Schema and DTD (00:50)
  • Core Structure of the XML File (01:28)
  • Defining and Naming Beans (02:14)
  • Typical Bean Creation (01:24)
  • Constructor Argument Matching (01:10)
  • Distinguishing ref and value (01:31)
  • Allowed conversions for value (01:38)
  • Examples of ref and value (03:41)
  • Summary (00:18)

Property Injection (29:17)

  • Introduction (00:54)
  • DI: Bean Properties (02:26)
  • DI: Using Nested Syntax (01:30)
  • Special Handling for Collections (00:35)
  • Collection Based Properties (01:12)
  • Initializing to a Null Value (00:21)
  • Factories: Adv. Bean Creation (01:17)
  • Static Bean Factory (02:36)
  • Method Factories (02:16)
  • Bean Creation - Singletons (01:02)
  • Managed Bean Lifecycle (02:34)
  • Validation of Bean Dependencies (01:15)
  • Autowiring (02:47)
  • Demo: Property Injection (07:12)
  • Summary (01:14)
Advanced Configurations

Config: Advanced Features (27:33)

  • Introduction (00:36)
  • init and destroy Methods (01:11)
  • Other Advanced Features (01:11)
  • Spring 3 Annotations (00:58)
  • @Resource (00:54)
  • @Autowired (00:31)
  • @Component (00:46)
  • @Component Specializations (00:40)
  • @Required (00:35)
  • Demo: Config Advanced Features (19:29)
  • Summary (00:38)

Config: Additional Features (36:26)

  • Introduction (00:53)
  • Overview of Factory Beans (02:40)
  • XSL Transform: Factory Beans (01:42)
  • Configuring the XSLFactory Bean (01:03)
  • Spring: Pre-built Factory Beans (00:45)
  • Bean Definition Re-use (03:50)
  • Using Property Files (01:30)
  • PropertyPlaceholderConfigurer (03:09)
  • Custom Property Editors (03:45)
  • Bean Post-Processors (01:46)
  • Demo: Additional Features (15:04)
  • Summary (00:13)