SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Introduction to
Spring
framework
SpringMehul
Jariwala
1
• Framework.
• Spring History.
• Key Features of Spring
Framework.
• Spring Architecture.
• Spring Files.
• Steps For Creating Spring Projects.
Overvie
w
2
Framework
 Frameworks are large prewritten code to which
you add your own code to solve a problem in a
specific domain.
 You make use of a framework by calling its
methods,inheritance,and supplying “call-backs”
listeners.
 Example Java’s Swing and AWT classes.They
have a huge amount of code to manage the
user interface and there is inversion of control.
3
Framework
• Software frameworks may include support
programs, compilers , code libraries , tool sets ,
API , Function, Producer , Datafile.
4
Spring
 Spring is the most popular application
development framework for enterprise Java™.
 Millions of developers use Spring to create
high performing, easily testable, reusable code
without any lock-in.
 Open source Java platform since 2003.
 Reduces code and speeds up development.
 Current Version is 4.0 5
Spring layer
Presentation layer – An MVC framework that is most
similar to Struts but is more powerful and easy to use.
Business layer – Lightweight IOC container and AOP
support (including built in aspects)
Persistence layer – DAO template support for popular
ORMs and JDBC
6
Spring layer
Presentation Logic Layer
Business Logic Layer
Data Access Layer
PHP,JSP,HTML
Data Base
App Logic
Data StorageBrowser View
Procedures
7
Spring History
8
Goals
 Make J2EE easier to use
 Make the common tasks easier
 Promote good programming practice.
 You can focus on the domain problems.
9
 Lightweight: Spring Framework is lightweight
with respect to size and transparency.
 Container: Spring Framework creates and
manages the life cycle and configuration of
application objects.
 Spring supports All types of application
development: We can develop any type of
applications using spring, e.g. Core java, web
Application, Distributed application, Enterprise
application.
Spring Features
10
Spring Architecture
 The Spring framework is a layered architecture
which consists of several modules.
 All modules are built on the top of its core
container.
 It's modular architecture enables integration
with other frameworks without much difficulties
11
Spring Architecture
12
Spring Architecture
The Core Module: This module contains
the Bean Factory, an implementation of Factory
Pattern which creates the bean as per the
configurations provided by the developer in an
XML file.
Core Module
The IOC Container.
13
Spring Architecture
 The AOP Module: AOP is a useful technique
that enables adding executable blocks to the
source code without explicitly changing it.
 AOP to avoid re-implementation of some
common behaviour in multiple classes.
AOP
Spring AOP
AspectJ integration
14
Spring Architecture
 The DAO Module:- (Data Access Object)
standardizes the data access work using
JDBC, Hibernate or JDO.
 This provides an abstraction layer to the low
level task of creating a connection, releasing it
etc.
DAO
Spring JDBC
Transaction
Management
15
Spring Architecture
 The ORM Module:- Spring doesn’t provides its
own ORM implementation but offers
integrations with popular Object Relational
mapping tools like Hibernate, iBATIS SQL
Maps, Oracle TopLink and JPA etc.
ORM
Hibernate
JPA,JDO,OJB
16
Spring Architecture
 The JEE Module:- It also provides support for
JMX, JCA, EJB and JMS etc.
 JCA (Java EE Connection API).
 EJB (Enterprise JavaBeans).
 JMS (Java Message Service).
JEE
EJB
JMS
17
Spring Architecture
 The Web Module:- Spring comes with MVC
framework which eases the task of developing
web applications.
 It also integrates well with the most popular
MVC frameworks like Struts, Tapestry, JSF,
Wicket etc.
18
New about Spring
19
Spring Project File
 Application Context.xml
The Application Context is Spring's advanced
container. Similar to Bean Factory, it can load
bean definitions.
This container is defined
by org.springframework.context.ApplicationCont
e xtinterface.
20
Spring Project File
 The most commonly used Application
Context implementations.
1. FileSystemXmlApplicationContext − Here you need
to provide the full path of the XML bean configuration
file.
2. ClassPathXmlApplicationContext − Here you do not
need To provide the full path of the XML file but you
need to set CLASSPATH.
3. WebXmlApplicationContext − This container loads
the XML file with definitions of all beans from within a21
Spring Project File
 Dispatcher-servlet.xml
The Spring Web model-view-controller (MVC)
framework is designed around a Dispatcher
Servlet that handles all the HTTP requests and
responses.
22
Spring Project File
 Web.xml
The /WEB-INF/web.xml file is used to define
how to deploy the web module to a Servlet
container like JBoss, Tomcat, Glassfish or any
other servlet container.
Basically web.xml tell container all servlets in
the web application with <servlet> element , then
tell container when to use which servlet by the url
mapping with <servlet-mapping> element.
23
Steps For Creating Project
 Step 1:- Creating Projects and Select Java
Web Application.
24
Steps For Creating Project
 Step 2:- Write a Name of Java Application
Projects And Click Finish.
25
Steps For Creating Project
 Step 3:- Select Spring Web MVC
Frameworks.
26
Steps For Creating Project
 Step 4:- Structure Of Spring MVC.
27
Reference
 https://www.roseindia.net/spring/architecture-of-
spring.shtml
 http://www.java4s.com/spring-mvc/spring-mvc-
execution-flow-diagram-spring-mvc-3-2-flow/
 https://dzone.com/articles/spring-framework-architecture
 https://www.javacodegeeks.com/2013/02/introduction-to-
javaee-concepts.html
 https://www.javatpoint.com/example-of-spring-
application-in-eclipse
 https://www.tutorialspoint.com/spring/spring_web_mvc_f
ramework.htm
 https://stackoverflow.com/questions/4545968/loading-
application-context-xml 28
Thanks You.
29

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Spring boot Introduction
Spring boot IntroductionSpring boot Introduction
Spring boot Introduction
 
Introduction to spring boot
Introduction to spring bootIntroduction to spring boot
Introduction to spring boot
 
Spring boot
Spring bootSpring boot
Spring boot
 
Spring Framework - AOP
Spring Framework - AOPSpring Framework - AOP
Spring Framework - AOP
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Spring notes
Spring notesSpring notes
Spring notes
 
Servlets
ServletsServlets
Servlets
 
Spring Framework - Core
Spring Framework - CoreSpring Framework - Core
Spring Framework - Core
 
Java spring ppt
Java spring pptJava spring ppt
Java spring ppt
 
Spring User Guide
Spring User GuideSpring User Guide
Spring User Guide
 
Spring boot
Spring bootSpring boot
Spring boot
 
Java basic introduction
Java basic introductionJava basic introduction
Java basic introduction
 
Spring introduction
Spring introductionSpring introduction
Spring introduction
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Spring data jpa
Spring data jpaSpring data jpa
Spring data jpa
 
Introduction to Spring Framework and Spring IoC
Introduction to Spring Framework and Spring IoCIntroduction to Spring Framework and Spring IoC
Introduction to Spring Framework and Spring IoC
 
Java spring framework
Java spring frameworkJava spring framework
Java spring framework
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 
Core java
Core javaCore java
Core java
 

Ähnlich wie Java Spring Framework

Spring framework-tutorial
Spring framework-tutorialSpring framework-tutorial
Spring framework-tutorialvinayiqbusiness
 
Spring Architecture | Advanced Java
Spring Architecture | Advanced JavaSpring Architecture | Advanced Java
Spring Architecture | Advanced JavaVISHAL DONGA
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring FrameworkDineesha Suraweera
 
Spring (1)
Spring (1)Spring (1)
Spring (1)Aneega
 
Spring Framework Tutorial | VirtualNuggets
Spring Framework Tutorial | VirtualNuggetsSpring Framework Tutorial | VirtualNuggets
Spring Framework Tutorial | VirtualNuggetsVirtual Nuggets
 
Spring Basics
Spring BasicsSpring Basics
Spring BasicsEmprovise
 
How Spring Framework Really Works?
How Spring Framework Really Works?How Spring Framework Really Works?
How Spring Framework Really Works?NexSoftsys
 
Introduction to j2 ee frameworks
Introduction to j2 ee frameworksIntroduction to j2 ee frameworks
Introduction to j2 ee frameworksMukesh Kumar
 
Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.suranisaunak
 
Framework adoption for java enterprise application development
Framework adoption for java enterprise application developmentFramework adoption for java enterprise application development
Framework adoption for java enterprise application developmentClarence Ho
 
Spring framework Introduction
Spring framework  IntroductionSpring framework  Introduction
Spring framework IntroductionAnuj Singh Rajput
 
Introduction to Spring sec1.pptx
Introduction to Spring sec1.pptxIntroduction to Spring sec1.pptx
Introduction to Spring sec1.pptxNourhanTarek23
 
Java J2EE Interview Questions Part 2
Java J2EE Interview Questions Part 2Java J2EE Interview Questions Part 2
Java J2EE Interview Questions Part 2javatrainingonline
 
Spring tutorials
Spring tutorialsSpring tutorials
Spring tutorialsTIB Academy
 
Spring core module
Spring core moduleSpring core module
Spring core moduleRaj Tomar
 

Ähnlich wie Java Spring Framework (20)

Spring framework-tutorial
Spring framework-tutorialSpring framework-tutorial
Spring framework-tutorial
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Spring Architecture | Advanced Java
Spring Architecture | Advanced JavaSpring Architecture | Advanced Java
Spring Architecture | Advanced Java
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Spring (1)
Spring (1)Spring (1)
Spring (1)
 
Spring Framework Tutorial | VirtualNuggets
Spring Framework Tutorial | VirtualNuggetsSpring Framework Tutorial | VirtualNuggets
Spring Framework Tutorial | VirtualNuggets
 
Spring Basics
Spring BasicsSpring Basics
Spring Basics
 
How Spring Framework Really Works?
How Spring Framework Really Works?How Spring Framework Really Works?
How Spring Framework Really Works?
 
Introduction to j2 ee frameworks
Introduction to j2 ee frameworksIntroduction to j2 ee frameworks
Introduction to j2 ee frameworks
 
Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.
 
Framework adoption for java enterprise application development
Framework adoption for java enterprise application developmentFramework adoption for java enterprise application development
Framework adoption for java enterprise application development
 
Spring Framework -I
Spring Framework -ISpring Framework -I
Spring Framework -I
 
Spring 2
Spring 2Spring 2
Spring 2
 
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
 
Java J2EE Interview Question Part 2
Java J2EE Interview Question Part 2Java J2EE Interview Question Part 2
Java J2EE Interview Question Part 2
 
Java J2EE Interview Questions Part 2
Java J2EE Interview Questions Part 2Java J2EE Interview Questions Part 2
Java J2EE Interview Questions Part 2
 
Spring tutorials
Spring tutorialsSpring tutorials
Spring tutorials
 
Spring core module
Spring core moduleSpring core module
Spring core module
 

Kürzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
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.pptxMaritesTamaniVerdade
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
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.pdfQucHHunhnh
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
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.christianmathematics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 

Kürzlich hochgeladen (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
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.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Java Spring Framework

  • 2. • Framework. • Spring History. • Key Features of Spring Framework. • Spring Architecture. • Spring Files. • Steps For Creating Spring Projects. Overvie w 2
  • 3. Framework  Frameworks are large prewritten code to which you add your own code to solve a problem in a specific domain.  You make use of a framework by calling its methods,inheritance,and supplying “call-backs” listeners.  Example Java’s Swing and AWT classes.They have a huge amount of code to manage the user interface and there is inversion of control. 3
  • 4. Framework • Software frameworks may include support programs, compilers , code libraries , tool sets , API , Function, Producer , Datafile. 4
  • 5. Spring  Spring is the most popular application development framework for enterprise Java™.  Millions of developers use Spring to create high performing, easily testable, reusable code without any lock-in.  Open source Java platform since 2003.  Reduces code and speeds up development.  Current Version is 4.0 5
  • 6. Spring layer Presentation layer – An MVC framework that is most similar to Struts but is more powerful and easy to use. Business layer – Lightweight IOC container and AOP support (including built in aspects) Persistence layer – DAO template support for popular ORMs and JDBC 6
  • 7. Spring layer Presentation Logic Layer Business Logic Layer Data Access Layer PHP,JSP,HTML Data Base App Logic Data StorageBrowser View Procedures 7
  • 9. Goals  Make J2EE easier to use  Make the common tasks easier  Promote good programming practice.  You can focus on the domain problems. 9
  • 10.  Lightweight: Spring Framework is lightweight with respect to size and transparency.  Container: Spring Framework creates and manages the life cycle and configuration of application objects.  Spring supports All types of application development: We can develop any type of applications using spring, e.g. Core java, web Application, Distributed application, Enterprise application. Spring Features 10
  • 11. Spring Architecture  The Spring framework is a layered architecture which consists of several modules.  All modules are built on the top of its core container.  It's modular architecture enables integration with other frameworks without much difficulties 11
  • 13. Spring Architecture The Core Module: This module contains the Bean Factory, an implementation of Factory Pattern which creates the bean as per the configurations provided by the developer in an XML file. Core Module The IOC Container. 13
  • 14. Spring Architecture  The AOP Module: AOP is a useful technique that enables adding executable blocks to the source code without explicitly changing it.  AOP to avoid re-implementation of some common behaviour in multiple classes. AOP Spring AOP AspectJ integration 14
  • 15. Spring Architecture  The DAO Module:- (Data Access Object) standardizes the data access work using JDBC, Hibernate or JDO.  This provides an abstraction layer to the low level task of creating a connection, releasing it etc. DAO Spring JDBC Transaction Management 15
  • 16. Spring Architecture  The ORM Module:- Spring doesn’t provides its own ORM implementation but offers integrations with popular Object Relational mapping tools like Hibernate, iBATIS SQL Maps, Oracle TopLink and JPA etc. ORM Hibernate JPA,JDO,OJB 16
  • 17. Spring Architecture  The JEE Module:- It also provides support for JMX, JCA, EJB and JMS etc.  JCA (Java EE Connection API).  EJB (Enterprise JavaBeans).  JMS (Java Message Service). JEE EJB JMS 17
  • 18. Spring Architecture  The Web Module:- Spring comes with MVC framework which eases the task of developing web applications.  It also integrates well with the most popular MVC frameworks like Struts, Tapestry, JSF, Wicket etc. 18
  • 20. Spring Project File  Application Context.xml The Application Context is Spring's advanced container. Similar to Bean Factory, it can load bean definitions. This container is defined by org.springframework.context.ApplicationCont e xtinterface. 20
  • 21. Spring Project File  The most commonly used Application Context implementations. 1. FileSystemXmlApplicationContext − Here you need to provide the full path of the XML bean configuration file. 2. ClassPathXmlApplicationContext − Here you do not need To provide the full path of the XML file but you need to set CLASSPATH. 3. WebXmlApplicationContext − This container loads the XML file with definitions of all beans from within a21
  • 22. Spring Project File  Dispatcher-servlet.xml The Spring Web model-view-controller (MVC) framework is designed around a Dispatcher Servlet that handles all the HTTP requests and responses. 22
  • 23. Spring Project File  Web.xml The /WEB-INF/web.xml file is used to define how to deploy the web module to a Servlet container like JBoss, Tomcat, Glassfish or any other servlet container. Basically web.xml tell container all servlets in the web application with <servlet> element , then tell container when to use which servlet by the url mapping with <servlet-mapping> element. 23
  • 24. Steps For Creating Project  Step 1:- Creating Projects and Select Java Web Application. 24
  • 25. Steps For Creating Project  Step 2:- Write a Name of Java Application Projects And Click Finish. 25
  • 26. Steps For Creating Project  Step 3:- Select Spring Web MVC Frameworks. 26
  • 27. Steps For Creating Project  Step 4:- Structure Of Spring MVC. 27
  • 28. Reference  https://www.roseindia.net/spring/architecture-of- spring.shtml  http://www.java4s.com/spring-mvc/spring-mvc- execution-flow-diagram-spring-mvc-3-2-flow/  https://dzone.com/articles/spring-framework-architecture  https://www.javacodegeeks.com/2013/02/introduction-to- javaee-concepts.html  https://www.javatpoint.com/example-of-spring- application-in-eclipse  https://www.tutorialspoint.com/spring/spring_web_mvc_f ramework.htm  https://stackoverflow.com/questions/4545968/loading- application-context-xml 28