SlideShare a Scribd company logo
Fundamentals
of
Kolluri Kamala
kamala.kolluri@karvy.com
Contents
 What is Spring ?
 Objective of Spring
 History of Spring
 Architecture of Spring
 Advantages of Spring Framework
 Procedure of Spring Programming
What is Spring ?
 The Spring framework is a Open Source Development Framework for
Enterprise Java Applications.
 “The Spring framework provides central transaction control of various
objects.”
Objective of Spring
Spring controls instantiation of all the objects and passes a Spring
reference to objects using various DI – Dependency Injection techniques
like getter/setter injection and constructor injection (I.e. IoC - Inversion of
Control).
History of Spring
 The 1st version was written by Rod Johnson
 The framework was 1st released under the Apache 2.0 license in June 2003,
 Spring 1.0 was released in March 2004,
 Spring 1.2.6 was released in March 2005,
 Spring 2.0 was released in October 2006,
 Spring 2.5 in November 2007,
 Spring 3.0 in December 2009,
 Spring 3.1 in December 2011,
 Spring 3.2.5 in November 2013.
 The current version is Spring Framework 4.0 was released in December 2013.
Architecture of Spring
Core Container
The Core Container consists the following Modules :
Core
Beans
Context
SPEL
Data Access/Integration
 The Data Access/Integration layer consists of the
JDBC(Java Database Connectivity)
ORM(Object Relational Mapping)
 OXM(Object XML Mapping)
 JMS (Java Message Service)
Transaction
Web Layer
 The Web layer consists of the
Web,
Web-MVC,
Web-Socket
Web-Portlet
Advantages of Spring Framework
 Works on POJOs. Hence easier for dependency injection / injection of test data.
 Enhances modularity Provides more readable codes.
 Provides loose coupling between different modules.
 Effective in organizing the middle-tier applications.
 Flexible use of Dependency injection. Can be configured by XML based schema
or annotation-based style.
 Supports declarative transaction, caching, validation and formatting.
Procedure of Spring Programming
 Create a Java Project
 Add required Libraries
 Create Source Files
 Create Bean Configuration File
 Running the Program
Create a Java Project
File New Project and finally select Java Project .
Package Explorer
Add required Libraries
• Build Path Configure Build Path
• Add External JARs button available
under Libraries tab to add the required
JAR files
Create Source Files
Create Bean Configuration File
• create a Bean
Configuration file which is
an XML file and acts as
cement that glues the
beans i.e.. classes together.
• This file needs to be
created under the src
directory as shown
Springs_Training

More Related Content

PPTX
Introduction to Spring Framework
PPTX
Java DataBase Connectivity API (JDBC API)
PPT
Introduction To CodeIgniter
PPT
PPTX
CodeIgniter 101 Tutorial
PPTX
J2EE PPT --CINTHIYA.M Krishnammal college for women
PPTX
Codeigniter Introduction
Introduction to Spring Framework
Java DataBase Connectivity API (JDBC API)
Introduction To CodeIgniter
CodeIgniter 101 Tutorial
J2EE PPT --CINTHIYA.M Krishnammal college for women
Codeigniter Introduction

What's hot (20)

PPTX
Spring MVC 5 & Hibernate 5 Integration
PPT
Codeigniter
PPTX
JSF 2.3: Integration with Front-End Frameworks
PPTX
Jdbc_ravi_2016
PPTX
1. Spring intro IoC
 
PPT
JDBC Architecture and Drivers
PPT
eSobi Website Multilayered Architecture
PDF
Introduction To CodeIgniter
PPTX
ASP.NET MVC 5 - EF 6 - VS2015
PPTX
Java- JDBC- Mazenet Solution
PDF
Assignment#10
PPTX
java Jdbc
PDF
CodeIgniter - PHP MVC Framework by silicongulf.com
PDF
Алексей Веркеенко "Symfony2 & REST API"
PDF
SEGAP - Technical overview
PPTX
Having fun with code igniter
PPTX
Java Training in Chennai
PPTX
Java Spring
PPTX
AngularJS 1.x - your first application (problems and solutions)
PDF
Code igniter - A brief introduction
Spring MVC 5 & Hibernate 5 Integration
Codeigniter
JSF 2.3: Integration with Front-End Frameworks
Jdbc_ravi_2016
1. Spring intro IoC
 
JDBC Architecture and Drivers
eSobi Website Multilayered Architecture
Introduction To CodeIgniter
ASP.NET MVC 5 - EF 6 - VS2015
Java- JDBC- Mazenet Solution
Assignment#10
java Jdbc
CodeIgniter - PHP MVC Framework by silicongulf.com
Алексей Веркеенко "Symfony2 & REST API"
SEGAP - Technical overview
Having fun with code igniter
Java Training in Chennai
Java Spring
AngularJS 1.x - your first application (problems and solutions)
Code igniter - A brief introduction
Ad

Viewers also liked (13)

PPTX
Arnotts campaign pitch. D.Ward
PPT
PPTX
Case Competition Slides- Raw Image LLC
PPT
Fotosintesis (anna sherley)
PPT
Understanding Chronic Pain - A guide for Medical Students
PPTX
Emnlp読み会@2017 02-15
PPT
Risk managementinbanking 102708 (1)
PPSX
Photo Album_Microlink Innovation Centre
PPTX
Cash operation and mobilization 1
DOC
Julie Detailed Resume
PDF
디자인과 문화 보고서 이유진(1410155)
DOCX
Automated Teller Machine
PPT
Metabolic bone diseases
Arnotts campaign pitch. D.Ward
Case Competition Slides- Raw Image LLC
Fotosintesis (anna sherley)
Understanding Chronic Pain - A guide for Medical Students
Emnlp読み会@2017 02-15
Risk managementinbanking 102708 (1)
Photo Album_Microlink Innovation Centre
Cash operation and mobilization 1
Julie Detailed Resume
디자인과 문화 보고서 이유진(1410155)
Automated Teller Machine
Metabolic bone diseases
Ad

Similar to Springs_Training (20)

PPTX
Spring framework-tutorial
PPTX
Java spring ppt
PPTX
Spring framework Introduction
PPTX
Spring framework
PPTX
Introduction to Spring Framework
PPTX
Introduction to Spring Framework
PPTX
How Spring Framework Really Works?
ODT
Spring framework
DOCX
Spring notes
PPTX
Spring (1)
PDF
스프링 프레임워크
PPTX
Spring Basics
PPTX
Spring Framework
PPT
PPTX
Spring framework
ODP
Spring survey
PDF
Spring framework Introduction
PPTX
Introduction to Spring sec1.pptx
PPT
Spring introduction
Spring framework-tutorial
Java spring ppt
Spring framework Introduction
Spring framework
Introduction to Spring Framework
Introduction to Spring Framework
How Spring Framework Really Works?
Spring framework
Spring notes
Spring (1)
스프링 프레임워크
Spring Basics
Spring Framework
Spring framework
Spring survey
Spring framework Introduction
Introduction to Spring sec1.pptx
Spring introduction

Springs_Training

  • 2. Contents  What is Spring ?  Objective of Spring  History of Spring  Architecture of Spring  Advantages of Spring Framework  Procedure of Spring Programming
  • 3. What is Spring ?  The Spring framework is a Open Source Development Framework for Enterprise Java Applications.  “The Spring framework provides central transaction control of various objects.”
  • 4. Objective of Spring Spring controls instantiation of all the objects and passes a Spring reference to objects using various DI – Dependency Injection techniques like getter/setter injection and constructor injection (I.e. IoC - Inversion of Control).
  • 5. History of Spring  The 1st version was written by Rod Johnson  The framework was 1st released under the Apache 2.0 license in June 2003,  Spring 1.0 was released in March 2004,  Spring 1.2.6 was released in March 2005,  Spring 2.0 was released in October 2006,  Spring 2.5 in November 2007,  Spring 3.0 in December 2009,  Spring 3.1 in December 2011,  Spring 3.2.5 in November 2013.  The current version is Spring Framework 4.0 was released in December 2013.
  • 7. Core Container The Core Container consists the following Modules : Core Beans Context SPEL
  • 8. Data Access/Integration  The Data Access/Integration layer consists of the JDBC(Java Database Connectivity) ORM(Object Relational Mapping)  OXM(Object XML Mapping)  JMS (Java Message Service) Transaction
  • 9. Web Layer  The Web layer consists of the Web, Web-MVC, Web-Socket Web-Portlet
  • 10. Advantages of Spring Framework  Works on POJOs. Hence easier for dependency injection / injection of test data.  Enhances modularity Provides more readable codes.  Provides loose coupling between different modules.  Effective in organizing the middle-tier applications.  Flexible use of Dependency injection. Can be configured by XML based schema or annotation-based style.  Supports declarative transaction, caching, validation and formatting.
  • 11. Procedure of Spring Programming  Create a Java Project  Add required Libraries  Create Source Files  Create Bean Configuration File  Running the Program
  • 12. Create a Java Project File New Project and finally select Java Project .
  • 14. Add required Libraries • Build Path Configure Build Path • Add External JARs button available under Libraries tab to add the required JAR files
  • 16. Create Bean Configuration File • create a Bean Configuration file which is an XML file and acts as cement that glues the beans i.e.. classes together. • This file needs to be created under the src directory as shown