Session 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

y

nl
O
se
U
tre
en
C
INTRODUCTION
h
ec
TO SPRING
pt
rA

Session 1
FRAMEWORK
Fo
OBJECTIVES

y
nl
O
 Describe Spring framework

se
 Identify the features and advantages of Spring framework

U
 Describe the architecture of Spring framework

tre
en
C
h
ec
pt
rA
Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 2


WHAT IS SPRING FRAMEWORK?

y
nl
O
se
 Spring framework is an open-source application
development framework that is used to develop

U
robust enterprise-level Java applications.

tre
 Spring framework has been developed by

en
Pivotal for Java Virtual Machine (JVMs).

C
 Spring framework allows developers to
concentrate on core program logic by providing

h
infrastructural support.
ec
pt
rA
Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 3


FEATURES OF SPRING FRAMEWORK

y
nl
O
se
Non-intrusive

U
tre
Inversion-of-
Light-weight
Control

en
C
h
MVC
Framework ec JDBC
Abstraction
pt
rA

Aspect-
Oriented
Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 4


ADVANTAGES OF SPRING FRAMEWORK

y
nl
O
Following are the advantages of using Spring framework:

se
U
Light-weight so no server required for activation

tre
en
Promotes good

C
Develop loosely-coupled applications programming
using IoC and DI

h
practices
ec
pt
Modular Improved error Develop robust
Web
rA

programming handling by using applications


approach JDBC framework using MVC
Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 5


INVERSION-OF-CONTROL AND SPRING FRAMEWORK

y
nl
O
 Inversion-of-Control principle provides following Develop

se
benefits: secure Web

U
Makes the application code modular applications
o Integrate

tre
o Makes the application code extensible social media Manage long
o Makes the application code independent of any into running jobs

en
environment applications
Spring

C
 IoC is implemented through Dependency Injection Framework
pattern.

h
Develop Manage
ec stand-alone
Applications
external
resources
pt
rA

Test Java
applications
Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 6


SPRING FRAMEWORK ARCHITECTURE

y
nl
O
 Spring Framework architecture consists of following four modules:

se
Spring Core Container (basic module of the framework)

U
tre
Aspect-Oriented Programming (AOP) Module (provides the

en
infrastructure logic to the framework)

C
h
Web Module (provides support to build robust Web applications)

ec
pt
rA

Data Access and Integration Module (helps eliminate JDBC coding)


Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 7


EVOLUTION OF SPRING FRAMEWORK

y
nl
O
 The commonly used Spring Framework version is 4.3.x

se
 The latest version is Spring Framework 5.0

U
Earlier versions of Spring Framework are:

tre
en
C
h
Spring 1.0 Spring 2.x Spring 3.0 Spring 3.1 Spring 3.2.x Spring 4.x

ec
pt
rA
Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 8


PRE-REQUISITES FOR CREATING A SPRING APPLICATION

y
nl
O
Before developing a Spring Java application, perform following two steps:

se
1. Download the Spring Framework library from:

U
http://repo.spring.io/release/org/springframework/spring/

tre
2. Download and install the latest version of Spring Source Tool Suite from:

en
C
http://spring.io/tools/sts

h
ec
pt
rA
Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 9


SUMMARY

y
nl
O
 Spring Framework, an open-source  Spring Framework includes the following features:

se
modular application development
framework, is used to develop robust Light-weight and non-intrusive

U
o
enterprise-level Java applications.

tre
o Support JDBC abstraction and MVC frameworks
 Spring Framework allows developers Uses IoC and DI to develop loosely-coupled applications

en
o
to concentrate on core program
logic, while providing infrastructural  Commonly used Spring Framework version is

C
support. 4.3.x, but the latest version is Spring Framework

h
5.0.
 Spring Framework architecture
incudes four components, Core ec
pt
container, AoP module, Web module,
rA

and Data Access and Integration


module.
Fo

Integrating Java Applications with Spring Framework © APTECH LTD. 10

You might also like