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

What's hot (20)

Spring MVC 5 & Hibernate 5 Integration
Spring MVC 5 & Hibernate 5 IntegrationSpring MVC 5 & Hibernate 5 Integration
Spring MVC 5 & Hibernate 5 Integration
Majurageerthan Arumugathasan
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
minhrau111
 
JSF 2.3: Integration with Front-End Frameworks
JSF 2.3: Integration with Front-End FrameworksJSF 2.3: Integration with Front-End Frameworks
JSF 2.3: Integration with Front-End Frameworks
Ian Hlavats
 
Jdbc_ravi_2016
Jdbc_ravi_2016Jdbc_ravi_2016
Jdbc_ravi_2016
Ravinder Singh Karki
 
1. Spring intro IoC
1. Spring intro IoC1. Spring intro IoC
1. Spring intro IoC
ASG
 
JDBC Architecture and Drivers
JDBC Architecture and DriversJDBC Architecture and Drivers
JDBC Architecture and Drivers
SimoniShah6
 
eSobi Website Multilayered Architecture
eSobi Website Multilayered ArchitectureeSobi Website Multilayered Architecture
eSobi Website Multilayered Architecture
Allan Huang
 
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
Muhammad Hafiz Hasan
 
ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
Hossein Zahed
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet Solution
Mazenetsolution
 
Assignment#10
Assignment#10Assignment#10
Assignment#10
Sunita Milind Dol
 
java Jdbc
java Jdbc java Jdbc
java Jdbc
Ankit Desai
 
CodeIgniter - PHP MVC Framework by silicongulf.com
CodeIgniter - PHP MVC Framework by silicongulf.comCodeIgniter - PHP MVC Framework by silicongulf.com
CodeIgniter - PHP MVC Framework by silicongulf.com
Christopher Cubos
 
Алексей Веркеенко "Symfony2 & REST API"
Алексей Веркеенко "Symfony2 & REST API" Алексей Веркеенко "Symfony2 & REST API"
Алексей Веркеенко "Symfony2 & REST API"
Fwdays
 
SEGAP - Technical overview
SEGAP - Technical overviewSEGAP - Technical overview
SEGAP - Technical overview
Cristian Catalin Mihai
 
Having fun with code igniter
Having fun with code igniterHaving fun with code igniter
Having fun with code igniter
Ahmad Arif
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai
raj esaki
 
Java Spring
Java SpringJava Spring
Java Spring
AathikaJava
 
AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)
Igor Talevski
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
Commit University
 
JSF 2.3: Integration with Front-End Frameworks
JSF 2.3: Integration with Front-End FrameworksJSF 2.3: Integration with Front-End Frameworks
JSF 2.3: Integration with Front-End Frameworks
Ian Hlavats
 
1. Spring intro IoC
1. Spring intro IoC1. Spring intro IoC
1. Spring intro IoC
ASG
 
JDBC Architecture and Drivers
JDBC Architecture and DriversJDBC Architecture and Drivers
JDBC Architecture and Drivers
SimoniShah6
 
eSobi Website Multilayered Architecture
eSobi Website Multilayered ArchitectureeSobi Website Multilayered Architecture
eSobi Website Multilayered Architecture
Allan Huang
 
ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
Hossein Zahed
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet Solution
Mazenetsolution
 
CodeIgniter - PHP MVC Framework by silicongulf.com
CodeIgniter - PHP MVC Framework by silicongulf.comCodeIgniter - PHP MVC Framework by silicongulf.com
CodeIgniter - PHP MVC Framework by silicongulf.com
Christopher Cubos
 
Алексей Веркеенко "Symfony2 & REST API"
Алексей Веркеенко "Symfony2 & REST API" Алексей Веркеенко "Symfony2 & REST API"
Алексей Веркеенко "Symfony2 & REST API"
Fwdays
 
Having fun with code igniter
Having fun with code igniterHaving fun with code igniter
Having fun with code igniter
Ahmad Arif
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai
raj esaki
 
AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)AngularJS 1.x - your first application (problems and solutions)
AngularJS 1.x - your first application (problems and solutions)
Igor Talevski
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
Commit University
 

Viewers also liked (13)

Arnotts campaign pitch. D.Ward
Arnotts campaign pitch. D.WardArnotts campaign pitch. D.Ward
Arnotts campaign pitch. D.Ward
dward230
 
Met rek mat_2015-16
Met rek mat_2015-16Met rek mat_2015-16
Met rek mat_2015-16
татьяна коваленко
 
Case Competition Slides- Raw Image LLC
Case Competition Slides- Raw Image LLCCase Competition Slides- Raw Image LLC
Case Competition Slides- Raw Image LLC
Bridget Stokes
 
Fotosintesis (anna sherley)
Fotosintesis (anna sherley)Fotosintesis (anna sherley)
Fotosintesis (anna sherley)
Jufri Ibrahim
 
Understanding Chronic Pain - A guide for Medical Students
Understanding Chronic Pain - A guide for Medical StudentsUnderstanding Chronic Pain - A guide for Medical Students
Understanding Chronic Pain - A guide for Medical Students
feargaldonaghy
 
Emnlp読み会@2017 02-15
Emnlp読み会@2017 02-15Emnlp読み会@2017 02-15
Emnlp読み会@2017 02-15
sekizawayuuki
 
Risk managementinbanking 102708 (1)
Risk managementinbanking 102708 (1)Risk managementinbanking 102708 (1)
Risk managementinbanking 102708 (1)
Sowie Althea
 
Photo Album_Microlink Innovation Centre
Photo Album_Microlink Innovation CentrePhoto Album_Microlink Innovation Centre
Photo Album_Microlink Innovation Centre
Microlink Solutions Pvt. Ltd.
 
Cash operation and mobilization 1
Cash operation and mobilization 1Cash operation and mobilization 1
Cash operation and mobilization 1
Sowie Althea
 
Julie Detailed Resume
Julie Detailed ResumeJulie Detailed Resume
Julie Detailed Resume
Julie Heimkes
 
디자인과 문화 보고서 이유진(1410155)
디자인과 문화 보고서 이유진(1410155)디자인과 문화 보고서 이유진(1410155)
디자인과 문화 보고서 이유진(1410155)
tnrauddbwls
 
Automated Teller Machine
Automated Teller MachineAutomated Teller Machine
Automated Teller Machine
Sowie Althea
 
Metabolic bone diseases
Metabolic bone diseasesMetabolic bone diseases
Metabolic bone diseases
Anubhav Verma
 
Arnotts campaign pitch. D.Ward
Arnotts campaign pitch. D.WardArnotts campaign pitch. D.Ward
Arnotts campaign pitch. D.Ward
dward230
 
Case Competition Slides- Raw Image LLC
Case Competition Slides- Raw Image LLCCase Competition Slides- Raw Image LLC
Case Competition Slides- Raw Image LLC
Bridget Stokes
 
Fotosintesis (anna sherley)
Fotosintesis (anna sherley)Fotosintesis (anna sherley)
Fotosintesis (anna sherley)
Jufri Ibrahim
 
Understanding Chronic Pain - A guide for Medical Students
Understanding Chronic Pain - A guide for Medical StudentsUnderstanding Chronic Pain - A guide for Medical Students
Understanding Chronic Pain - A guide for Medical Students
feargaldonaghy
 
Emnlp読み会@2017 02-15
Emnlp読み会@2017 02-15Emnlp読み会@2017 02-15
Emnlp読み会@2017 02-15
sekizawayuuki
 
Risk managementinbanking 102708 (1)
Risk managementinbanking 102708 (1)Risk managementinbanking 102708 (1)
Risk managementinbanking 102708 (1)
Sowie Althea
 
Cash operation and mobilization 1
Cash operation and mobilization 1Cash operation and mobilization 1
Cash operation and mobilization 1
Sowie Althea
 
Julie Detailed Resume
Julie Detailed ResumeJulie Detailed Resume
Julie Detailed Resume
Julie Heimkes
 
디자인과 문화 보고서 이유진(1410155)
디자인과 문화 보고서 이유진(1410155)디자인과 문화 보고서 이유진(1410155)
디자인과 문화 보고서 이유진(1410155)
tnrauddbwls
 
Automated Teller Machine
Automated Teller MachineAutomated Teller Machine
Automated Teller Machine
Sowie Althea
 
Metabolic bone diseases
Metabolic bone diseasesMetabolic bone diseases
Metabolic bone diseases
Anubhav Verma
 

Similar to Springs_Training (20)

Spring framework-tutorial
Spring framework-tutorialSpring framework-tutorial
Spring framework-tutorial
vinayiqbusiness
 
Java spring ppt
Java spring pptJava spring ppt
Java spring ppt
natashasweety7
 
Spring framework Introduction
Spring framework  IntroductionSpring framework  Introduction
Spring framework Introduction
Anuj Singh Rajput
 
Spring framework
Spring frameworkSpring framework
Spring framework
Kani Selvam
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
Raveendra R
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
Collaboration Technologies
 
How Spring Framework Really Works?
How Spring Framework Really Works?How Spring Framework Really Works?
How Spring Framework Really Works?
NexSoftsys
 
Spring framework
Spring frameworkSpring framework
Spring framework
Shivi Kashyap
 
Spring notes
Spring notesSpring notes
Spring notes
Rajeev Uppala
 
Spring (1)
Spring (1)Spring (1)
Spring (1)
Aneega
 
스프링 프레임워크
스프링 프레임워크스프링 프레임워크
스프링 프레임워크
Yoonki Chang
 
Spring Basics
Spring BasicsSpring Basics
Spring Basics
Emprovise
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
tola99
 
Spring
SpringSpring
Spring
Prashant Kumar
 
Spring framework
Spring frameworkSpring framework
Spring framework
Sonal Poddar
 
Spring survey
Spring surveySpring survey
Spring survey
Chris Roeder
 
Spring framework Introduction
Spring framework IntroductionSpring framework Introduction
Spring framework Introduction
Anuj Singh Rajput
 
Spring
SpringSpring
Spring
NarayanaMurthy Ganashree
 
Introduction to Spring sec1.pptx
Introduction to Spring sec1.pptxIntroduction to Spring sec1.pptx
Introduction to Spring sec1.pptx
NourhanTarek23
 
Spring introduction
Spring introductionSpring introduction
Spring introduction
Manav Prasad
 

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