Did you know that you could use POJO programming with the Spring Framework? Learn everything there is about the Spring Framework with our Java Spring Tutorial!

Spring – An overview

Spring is an open source framework based on the Java platform and provides a comprehensive support for developing robust applications in Java in an easy manner. Spring is an excellent framework to learn and master and it has several key advantages. Here are some of the benefits of the framework:

  • Enables Programming in POJO
  • A thriving support community
  • Aspect Oriented Programming Support
  • Dependency Injection
  • Improved testing options when compared to other frameworks owing to dependency injection
  • Simplified JDBC.
  • Integration with other frameworks like hibernate

Our Java Spring tutorial course content has been prepared based on Spring Framework version 3.0 or above.
Enroll with our java online training courses to kick start your career in programming!

Objectives:

At the end of this Java Spring tutorial course, you will be:

  • Competent enough to develop Spring application
  • Able to create Spring MVC web applications and integrate with them using Hibernate as your backend
  • Use Spring Core, AOP and MVC for spring application development

 

What you will learn from this course?

With our Java Spring Tutorial course, you will learn about:

  • IOC and Dependency Injection
  • Spring bean life-cycle – Auto wiring and bean scopes
  • XML and Annotation-based dependency injection
  • Life Cycle Methods using IntializingBean, Disposable Beans
  • Adding behavior to an application using aspects – AOP
  • Creating and applying aspects
  • Introducing data access with Spring – JDBC through spring
  • Integrating Spring with Hibernate
  • Working with Spring MVC
  • Form Handling in Spring MVC

 

Prerequisites:

  • It will help if you have prior knowledge in Java

 

Who is this course designed for?

Our Java Spring Tutorial course is designed for:

  • Java developers who want to enhance their skills in Spring Application Development.
  • Java and J2EE developers and architects who wish to develop a deep knowledge of the Spring Framework to use it effectively in applications from simple web applications up to complex enterprise applications.

 

Course Duration:

  • 24 Hours

 

Course Outline:

Introduction
Overview of Spring framework
Dependency Injection (DI)
What is Spring?
Spring Architecture

  • Spring Container, IoC, DI
  • Configuration Metadata – XML
  • Dependency Injection (DI) in Spring, DI Configuration
Spring Core Container and Beans

  • BeanFactory Interface and ApplicationContext
  • ClassPathXmlApplicationContext, FileSystemXmlApplicationContext
  • Spring Beans
  • Loading Spring Configuration File

 

What is Setter Based and Constructor Based DI
XML Based Configuration

  • Setter Based and Constructor Based
  • Factory Methods, Definition Inheritance (Parent Beans)
  • Collection Valued Properties
  • Configuring and using Array, List, Map, Set and Properties
  • Inner Bean
  • Bean Scopes
  • Autowiring of Dependencies using byName, byType, constructor

Bean LifeCycle

  • InitializingBean and DisposableBean
  • Creating custom lifecycle methods

Annotation Driven Configuration

  • Setter-Based /Constructor based
  • Use of @Component, @Value
  • Autowiring using @Autowired,@Qualifier
  • Use of @PostConstruct and @PreDestroy
Database Access with Spring

  • Issues with JDBC / Typical JDBC Flow
  • Introduction to Spring DAO Support
  • Queries and Inserts
  • Additional API Capabilities
  • Using Spring with Hibernate
    1. Spring Database API
    2. Simple JDBC Template
    3. Simple JDBC DAO Support
Introduction to Spring Web MVC
Spring MVC Architecture

  • DispatcherServlet and Context Loader Listener
  • Use of Controllers, View Resolvers
  • Stereotypes: @Component, @Service, @Controller, @Repository

Creating a Spring MVC appliaction using Maven

Validation Framework

  • Declarative Validation, @NotNull, @Size, @Min, etc
  • Custom Validators

Integration of Spring MVC with JDBC and Hibernate

Aspect Oriented Programming (AOP)

  • Overview of AOP
  • Introduction to Spring AOP
  • AOP Basics
  • Aspect, Joinpoint,Advice, Pointcut, Weaving
  • Using Aspects
  • Using @AspectJ Annotations
  • AspectJ Pointcuts, Autoproxies

Project Work with Spring and JDBC/Hibernate