SlideShare une entreprise Scribd logo
1  sur  17
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

Contenu connexe

Tendances

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 FrameworksIan Hlavats
 
1. Spring intro IoC
1. Spring intro IoC1. Spring intro IoC
1. Spring intro IoCASG
 
JDBC Architecture and Drivers
JDBC Architecture and DriversJDBC Architecture and Drivers
JDBC Architecture and DriversSimoniShah6
 
eSobi Website Multilayered Architecture
eSobi Website Multilayered ArchitectureeSobi Website Multilayered Architecture
eSobi Website Multilayered ArchitectureAllan 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 - VS2015Hossein Zahed
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionMazenetsolution
 
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.comChristopher 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 igniterAhmad 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 introductionCommit University
 

Tendances (20)

Spring MVC 5 & Hibernate 5 Integration
Spring MVC 5 & Hibernate 5 IntegrationSpring MVC 5 & Hibernate 5 Integration
Spring MVC 5 & Hibernate 5 Integration
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
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
 
Jdbc_ravi_2016
Jdbc_ravi_2016Jdbc_ravi_2016
Jdbc_ravi_2016
 
1. Spring intro IoC
1. Spring intro IoC1. Spring intro IoC
1. Spring intro IoC
 
JDBC Architecture and Drivers
JDBC Architecture and DriversJDBC Architecture and Drivers
JDBC Architecture and Drivers
 
eSobi Website Multilayered Architecture
eSobi Website Multilayered ArchitectureeSobi Website Multilayered Architecture
eSobi Website Multilayered Architecture
 
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
 
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
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet Solution
 
Assignment#10
Assignment#10Assignment#10
Assignment#10
 
java Jdbc
java Jdbc java Jdbc
java Jdbc
 
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
 
Алексей Веркеенко "Symfony2 & REST API"
Алексей Веркеенко "Symfony2 & REST API" Алексей Веркеенко "Symfony2 & REST API"
Алексей Веркеенко "Symfony2 & REST API"
 
SEGAP - Technical overview
SEGAP - Technical overviewSEGAP - Technical overview
SEGAP - Technical overview
 
Having fun with code igniter
Having fun with code igniterHaving fun with code igniter
Having fun with code igniter
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai
 
Java Spring
Java SpringJava Spring
Java Spring
 
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)
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
 

En vedette

Arnotts campaign pitch. D.Ward
Arnotts campaign pitch. D.WardArnotts campaign pitch. D.Ward
Arnotts campaign pitch. D.Warddward230
 
Case Competition Slides- Raw Image LLC
Case Competition Slides- Raw Image LLCCase Competition Slides- Raw Image LLC
Case Competition Slides- Raw Image LLCBridget 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 Studentsfeargaldonaghy
 
Emnlp読み会@2017 02-15
Emnlp読み会@2017 02-15Emnlp読み会@2017 02-15
Emnlp読み会@2017 02-15sekizawayuuki
 
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 1Sowie Althea
 
Julie Detailed Resume
Julie Detailed ResumeJulie Detailed Resume
Julie Detailed ResumeJulie Heimkes
 
디자인과 문화 보고서 이유진(1410155)
디자인과 문화 보고서 이유진(1410155)디자인과 문화 보고서 이유진(1410155)
디자인과 문화 보고서 이유진(1410155)tnrauddbwls
 
Automated Teller Machine
Automated Teller MachineAutomated Teller Machine
Automated Teller MachineSowie Althea
 
Metabolic bone diseases
Metabolic bone diseasesMetabolic bone diseases
Metabolic bone diseasesAnubhav Verma
 

En vedette (13)

Arnotts campaign pitch. D.Ward
Arnotts campaign pitch. D.WardArnotts campaign pitch. D.Ward
Arnotts campaign pitch. D.Ward
 
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
 
Fotosintesis (anna sherley)
Fotosintesis (anna sherley)Fotosintesis (anna sherley)
Fotosintesis (anna sherley)
 
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
 
Emnlp読み会@2017 02-15
Emnlp読み会@2017 02-15Emnlp読み会@2017 02-15
Emnlp読み会@2017 02-15
 
Risk managementinbanking 102708 (1)
Risk managementinbanking 102708 (1)Risk managementinbanking 102708 (1)
Risk managementinbanking 102708 (1)
 
Photo Album_Microlink Innovation Centre
Photo Album_Microlink Innovation CentrePhoto Album_Microlink Innovation Centre
Photo Album_Microlink Innovation Centre
 
Cash operation and mobilization 1
Cash operation and mobilization 1Cash operation and mobilization 1
Cash operation and mobilization 1
 
Julie Detailed Resume
Julie Detailed ResumeJulie Detailed Resume
Julie Detailed Resume
 
디자인과 문화 보고서 이유진(1410155)
디자인과 문화 보고서 이유진(1410155)디자인과 문화 보고서 이유진(1410155)
디자인과 문화 보고서 이유진(1410155)
 
Automated Teller Machine
Automated Teller MachineAutomated Teller Machine
Automated Teller Machine
 
Metabolic bone diseases
Metabolic bone diseasesMetabolic bone diseases
Metabolic bone diseases
 

Similaire à Springs_Training

Similaire à Springs_Training (20)

Spring framework-tutorial
Spring framework-tutorialSpring framework-tutorial
Spring framework-tutorial
 
Java spring ppt
Java spring pptJava spring ppt
Java spring ppt
 
Spring framework Introduction
Spring framework  IntroductionSpring framework  Introduction
Spring framework Introduction
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
How Spring Framework Really Works?
How Spring Framework Really Works?How Spring Framework Really Works?
How Spring Framework Really Works?
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Spring notes
Spring notesSpring notes
Spring notes
 
Spring (1)
Spring (1)Spring (1)
Spring (1)
 
스프링 프레임워크
스프링 프레임워크스프링 프레임워크
스프링 프레임워크
 
Spring Basics
Spring BasicsSpring Basics
Spring Basics
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
 
Spring
SpringSpring
Spring
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Spring survey
Spring surveySpring survey
Spring survey
 
Spring framework Introduction
Spring framework IntroductionSpring framework Introduction
Spring framework Introduction
 
Spring
SpringSpring
Spring
 
Introduction to Spring sec1.pptx
Introduction to Spring sec1.pptxIntroduction to Spring sec1.pptx
Introduction to Spring sec1.pptx
 
Spring introduction
Spring introductionSpring introduction
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