SlideShare una empresa de Scribd logo
1 de 11
Spring
in
PracticeVersion 4.0
[ Overview | Design | Architecture | DI & IoC ]
By: SAURABH SHARMA | TechShareZone Community
Source: http://javazone.techsharezone.com | +91 810 591 1711
Session: 1
 Created by Rod Jhonson
 An open source framework
 Spring is an light weight Dependency Injection and Aspect
Oriented Container and framework.
- Spring Overview
- Spring framework architecture
- Deprecated Methods and Packages
- Java 8 Support
- Groovy Bean Definition DSL
- Spring Core Changes
- Spring Web Module Features
Currently Spring 4.2 is the latest version and they have
enhanced event listener, hibernate, jetty and modern Java
component design with spring framework.
- Spring 4.0 Release and Features
 Dependency Injection
 Also known as IoC (Inversion of Control)
 Aspect Oriented Programming
 Runtime injection-based
 Portable Service Abstractions
 The rest of spring
 ORM, DAO, Web MVC, Web, etc.
 Allows access to these without knowing how they actually
work
- What does Spring offer?
Dependency Injection (DI) is a design pattern that removes the dependency
from the programming code so that it can be easy to manage and test the
application.
Constructor-based dependency injection
Constructor-based DI is accomplished when the container invokes a class constructor
with a number of arguments, each representing a dependency on other class.
Setter-based dependency injection
Setter-based DI is accomplished by the container calling setter methods on your
beans after invoking a no-argument constructor or no-argument static factory
method to instantiate your bean.
- Dependency Injection in Spring
- IoC is all about Object dependencies.
- Traditional "Pull" approach:
- Direct instantiation
- Looking up a service via JNDI
"Push" approach:
- Something outside of the Object "pushes" its
dependencies into it.
The Object has no knowledge of how it gets its dependencies, it
just assumes they are there.
- The "Push" approach is called "Dependency Injection".
- What is Inversion of Control (IoC)?
 Typical java bean with a unique id
 Beans are normally created by Spring as late as possible
- What is a bean?
Scope Description
Singleton Single instance spring IoC
Prototype Single bean definition to have any number of object instance
Request A bean definition to an HTTP request. Only valid in the context of a web
aware spring applicationContext.
Session A bean definition to an HTTP session. Only valid in the context of a web
aware spring applicationContext.
Global-session A bean definition to an global HTTP session. Only valid in the context of a
web aware spring applicationContext.
 Defines a bean for Spring to manage
 Key attributes
 class (required): fully qualified java class name
 id: the unique identifier for this bean
 configuration: (singleton, init-method, etc.)
 constructor-arg: arguments to pass to the constructor at creation
time
 property: arguments to pass to the bean setters at creation time
 Collaborators: other beans needed in this bean (a.k.a
dependencies), specified in property or constructor-arg
 Typically defined in an XML file
- What is a bean definition?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd">
<bean id="expense" class="com.tsz.springfactory.model.Expense" scope="singleton“
init-method=“init” destroy-method=“destroy”>
</bean>
</beans>
- Sample bean definition
Thank You
“This recepie may not be tasty but it was full of
ingredients of knowledge”

Más contenido relacionado

La actualidad más candente

Selenium coursecontent linkedin
Selenium coursecontent   linkedinSelenium coursecontent   linkedin
Selenium coursecontent linkedin
Selenium Training
 
Selenium_For_Beginners_VodQA_Final
Selenium_For_Beginners_VodQA_FinalSelenium_For_Beginners_VodQA_Final
Selenium_For_Beginners_VodQA_Final
Manjyot Singh
 
Getting Reactive with Spring Framework 5.0’s GA release
Getting Reactive with Spring Framework 5.0’s GA releaseGetting Reactive with Spring Framework 5.0’s GA release
Getting Reactive with Spring Framework 5.0’s GA release
VMware Tanzu
 
Enabling modularization through OSGi and SpringDM
Enabling modularization through OSGi and SpringDMEnabling modularization through OSGi and SpringDM
Enabling modularization through OSGi and SpringDM
mukulobject
 

La actualidad más candente (20)

Introduction To Dependency Injection Using Spring.NET
Introduction To Dependency Injection Using Spring.NETIntroduction To Dependency Injection Using Spring.NET
Introduction To Dependency Injection Using Spring.NET
 
Java Spring Framework
Java Spring FrameworkJava Spring Framework
Java Spring Framework
 
Keycloak Single Sign-On
Keycloak Single Sign-OnKeycloak Single Sign-On
Keycloak Single Sign-On
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
Java spring ppt
Java spring pptJava spring ppt
Java spring ppt
 
Java EE vs Spring Framework
Java  EE vs Spring Framework Java  EE vs Spring Framework
Java EE vs Spring Framework
 
Spring framework Introduction
Spring framework IntroductionSpring framework Introduction
Spring framework Introduction
 
Gnizr Architecture (for developers)
Gnizr Architecture (for developers)Gnizr Architecture (for developers)
Gnizr Architecture (for developers)
 
Spring MVC framework
Spring MVC frameworkSpring MVC framework
Spring MVC framework
 
Javacro 2014 Spring Security 3 Speech
Javacro 2014 Spring Security 3 SpeechJavacro 2014 Spring Security 3 Speech
Javacro 2014 Spring Security 3 Speech
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Spring 3 MVC CodeMash 2009
Spring 3 MVC   CodeMash 2009Spring 3 MVC   CodeMash 2009
Spring 3 MVC CodeMash 2009
 
Selenium coursecontent linkedin
Selenium coursecontent   linkedinSelenium coursecontent   linkedin
Selenium coursecontent linkedin
 
Spring Framework 4.0 - The Next Generation - Soft-Shake 2013
Spring Framework 4.0 - The Next Generation - Soft-Shake 2013Spring Framework 4.0 - The Next Generation - Soft-Shake 2013
Spring Framework 4.0 - The Next Generation - Soft-Shake 2013
 
Selenium_For_Beginners_VodQA_Final
Selenium_For_Beginners_VodQA_FinalSelenium_For_Beginners_VodQA_Final
Selenium_For_Beginners_VodQA_Final
 
Java EE Application Security With PicketLink
Java EE Application Security With PicketLinkJava EE Application Security With PicketLink
Java EE Application Security With PicketLink
 
Spring, web service, web server, eclipse by a introduction sandesh sharma
Spring, web service, web server, eclipse by a introduction sandesh sharmaSpring, web service, web server, eclipse by a introduction sandesh sharma
Spring, web service, web server, eclipse by a introduction sandesh sharma
 
Getting Reactive with Spring Framework 5.0’s GA release
Getting Reactive with Spring Framework 5.0’s GA releaseGetting Reactive with Spring Framework 5.0’s GA release
Getting Reactive with Spring Framework 5.0’s GA release
 
Enabling modularization through OSGi and SpringDM
Enabling modularization through OSGi and SpringDMEnabling modularization through OSGi and SpringDM
Enabling modularization through OSGi and SpringDM
 

Destacado

Microorganisms
MicroorganismsMicroorganisms
Microorganisms
sunilbhil
 
Aplikom_Unsri_1. MyBiodata dan keunikan Matematika_Sutri Octaviana
Aplikom_Unsri_1. MyBiodata dan keunikan Matematika_Sutri OctavianaAplikom_Unsri_1. MyBiodata dan keunikan Matematika_Sutri Octaviana
Aplikom_Unsri_1. MyBiodata dan keunikan Matematika_Sutri Octaviana
sutrioctavianasitorus
 
The quality of work and health inequalities – cross-national differences
The quality of work and health inequalities –  cross-national differences �The quality of work and health inequalities –  cross-national differences �
The quality of work and health inequalities – cross-national differences
sophieproject
 
阳光保险,摇一摇流程
阳光保险,摇一摇流程阳光保险,摇一摇流程
阳光保险,摇一摇流程
朋 陈
 
2012 06 FGV Custo Mão de Obra Encargos Sociai Brasil
2012 06   FGV Custo Mão de Obra Encargos Sociai Brasil2012 06   FGV Custo Mão de Obra Encargos Sociai Brasil
2012 06 FGV Custo Mão de Obra Encargos Sociai Brasil
Siamfesp Sindicato
 
Ch2 2014 Kristen Ricker Nixa High School
Ch2 2014 Kristen Ricker Nixa High School Ch2 2014 Kristen Ricker Nixa High School
Ch2 2014 Kristen Ricker Nixa High School
rickerkristen
 
CV Roy Basoeki
CV Roy BasoekiCV Roy Basoeki
CV Roy Basoeki
time4web
 

Destacado (20)

Manual património cultural aula 14 - mosteiro de s. bento s. tirso - cópia
Manual património cultural   aula 14 - mosteiro de s. bento s. tirso - cópiaManual património cultural   aula 14 - mosteiro de s. bento s. tirso - cópia
Manual património cultural aula 14 - mosteiro de s. bento s. tirso - cópia
 
Microorganisms
MicroorganismsMicroorganisms
Microorganisms
 
Aplikom_Unsri_1. MyBiodata dan keunikan Matematika_Sutri Octaviana
Aplikom_Unsri_1. MyBiodata dan keunikan Matematika_Sutri OctavianaAplikom_Unsri_1. MyBiodata dan keunikan Matematika_Sutri Octaviana
Aplikom_Unsri_1. MyBiodata dan keunikan Matematika_Sutri Octaviana
 
Poor Pigs
Poor PigsPoor Pigs
Poor Pigs
 
The quality of work and health inequalities – cross-national differences
The quality of work and health inequalities –  cross-national differences �The quality of work and health inequalities –  cross-national differences �
The quality of work and health inequalities – cross-national differences
 
阳光保险,摇一摇流程
阳光保险,摇一摇流程阳光保险,摇一摇流程
阳光保险,摇一摇流程
 
Ususnmptn2011
Ususnmptn2011Ususnmptn2011
Ususnmptn2011
 
Global and china obd telematics industry report, 2014 2015
Global and china obd telematics industry report, 2014 2015Global and china obd telematics industry report, 2014 2015
Global and china obd telematics industry report, 2014 2015
 
Miquel Martí i Pol
Miquel Martí i PolMiquel Martí i Pol
Miquel Martí i Pol
 
Windows 8.1 Deployment - Tools, Tools, Tools
Windows 8.1 Deployment - Tools, Tools, ToolsWindows 8.1 Deployment - Tools, Tools, Tools
Windows 8.1 Deployment - Tools, Tools, Tools
 
33 Period week
33 Period week33 Period week
33 Period week
 
工作狂日记
工作狂日记工作狂日记
工作狂日记
 
2012 06 FGV Custo Mão de Obra Encargos Sociai Brasil
2012 06   FGV Custo Mão de Obra Encargos Sociai Brasil2012 06   FGV Custo Mão de Obra Encargos Sociai Brasil
2012 06 FGV Custo Mão de Obra Encargos Sociai Brasil
 
Que es google docs
Que es google docsQue es google docs
Que es google docs
 
Ch2 2014 Kristen Ricker Nixa High School
Ch2 2014 Kristen Ricker Nixa High School Ch2 2014 Kristen Ricker Nixa High School
Ch2 2014 Kristen Ricker Nixa High School
 
англійська мова 3 кл підручник
англійська мова 3 кл підручниканглійська мова 3 кл підручник
англійська мова 3 кл підручник
 
CV Roy Basoeki
CV Roy BasoekiCV Roy Basoeki
CV Roy Basoeki
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
 
Say little, do more.
Say little, do more.Say little, do more.
Say little, do more.
 
C Programming
C ProgrammingC Programming
C Programming
 

Similar a Spring overview &amp; architecture

Introduction to Spring sec1.pptx
Introduction to Spring sec1.pptxIntroduction to Spring sec1.pptx
Introduction to Spring sec1.pptx
NourhanTarek23
 
Spring framework
Spring frameworkSpring framework
Spring framework
Kani Selvam
 
Spring intro classes-in-mumbai
Spring intro classes-in-mumbaiSpring intro classes-in-mumbai
Spring intro classes-in-mumbai
vibrantuser
 

Similar a Spring overview &amp; architecture (20)

Introduction to Spring sec1.pptx
Introduction to Spring sec1.pptxIntroduction to Spring sec1.pptx
Introduction to Spring sec1.pptx
 
Spring
SpringSpring
Spring
 
Spring - Part 1 - IoC, Di and Beans
Spring - Part 1 - IoC, Di and Beans Spring - Part 1 - IoC, Di and Beans
Spring - Part 1 - IoC, Di and Beans
 
Spring survey
Spring surveySpring survey
Spring survey
 
Session 43 - Spring - Part 1 - IoC DI Beans
Session 43 - Spring - Part 1 - IoC DI BeansSession 43 - Spring - Part 1 - IoC DI Beans
Session 43 - Spring - Part 1 - IoC DI Beans
 
Spring (1)
Spring (1)Spring (1)
Spring (1)
 
Spring mvc
Spring mvcSpring mvc
Spring mvc
 
Jetspeed-2 Overview
Jetspeed-2 OverviewJetspeed-2 Overview
Jetspeed-2 Overview
 
Spring introduction
Spring introductionSpring introduction
Spring introduction
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Spring IOC and DAO
Spring IOC and DAOSpring IOC and DAO
Spring IOC and DAO
 
Spring intro classes-in-mumbai
Spring intro classes-in-mumbaiSpring intro classes-in-mumbai
Spring intro classes-in-mumbai
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Spring Basics
Spring BasicsSpring Basics
Spring Basics
 
Spring Framework - Core
Spring Framework - CoreSpring Framework - Core
Spring Framework - Core
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Learn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - IntoductionLearn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - Intoduction
 
springtraning-7024840-phpapp01.pdf
springtraning-7024840-phpapp01.pdfspringtraning-7024840-phpapp01.pdf
springtraning-7024840-phpapp01.pdf
 
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Java Spring framework, Dependency Injection, DI, IoC, Inversion of ControlJava Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
 
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC Team
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC TeamAOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC Team
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC Team
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Spring overview &amp; architecture

  • 1. Spring in PracticeVersion 4.0 [ Overview | Design | Architecture | DI & IoC ] By: SAURABH SHARMA | TechShareZone Community Source: http://javazone.techsharezone.com | +91 810 591 1711 Session: 1
  • 2.  Created by Rod Jhonson  An open source framework  Spring is an light weight Dependency Injection and Aspect Oriented Container and framework. - Spring Overview
  • 3. - Spring framework architecture
  • 4. - Deprecated Methods and Packages - Java 8 Support - Groovy Bean Definition DSL - Spring Core Changes - Spring Web Module Features Currently Spring 4.2 is the latest version and they have enhanced event listener, hibernate, jetty and modern Java component design with spring framework. - Spring 4.0 Release and Features
  • 5.  Dependency Injection  Also known as IoC (Inversion of Control)  Aspect Oriented Programming  Runtime injection-based  Portable Service Abstractions  The rest of spring  ORM, DAO, Web MVC, Web, etc.  Allows access to these without knowing how they actually work - What does Spring offer?
  • 6. Dependency Injection (DI) is a design pattern that removes the dependency from the programming code so that it can be easy to manage and test the application. Constructor-based dependency injection Constructor-based DI is accomplished when the container invokes a class constructor with a number of arguments, each representing a dependency on other class. Setter-based dependency injection Setter-based DI is accomplished by the container calling setter methods on your beans after invoking a no-argument constructor or no-argument static factory method to instantiate your bean. - Dependency Injection in Spring
  • 7. - IoC is all about Object dependencies. - Traditional "Pull" approach: - Direct instantiation - Looking up a service via JNDI "Push" approach: - Something outside of the Object "pushes" its dependencies into it. The Object has no knowledge of how it gets its dependencies, it just assumes they are there. - The "Push" approach is called "Dependency Injection". - What is Inversion of Control (IoC)?
  • 8.  Typical java bean with a unique id  Beans are normally created by Spring as late as possible - What is a bean? Scope Description Singleton Single instance spring IoC Prototype Single bean definition to have any number of object instance Request A bean definition to an HTTP request. Only valid in the context of a web aware spring applicationContext. Session A bean definition to an HTTP session. Only valid in the context of a web aware spring applicationContext. Global-session A bean definition to an global HTTP session. Only valid in the context of a web aware spring applicationContext.
  • 9.  Defines a bean for Spring to manage  Key attributes  class (required): fully qualified java class name  id: the unique identifier for this bean  configuration: (singleton, init-method, etc.)  constructor-arg: arguments to pass to the constructor at creation time  property: arguments to pass to the bean setters at creation time  Collaborators: other beans needed in this bean (a.k.a dependencies), specified in property or constructor-arg  Typically defined in an XML file - What is a bean definition?
  • 10. <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd"> <bean id="expense" class="com.tsz.springfactory.model.Expense" scope="singleton“ init-method=“init” destroy-method=“destroy”> </bean> </beans> - Sample bean definition
  • 11. Thank You “This recepie may not be tasty but it was full of ingredients of knowledge”