This document provides an introduction to the Spring Framework, including its core features and architecture. It discusses how Spring addresses issues with other Java frameworks through loose coupling and dependency injection. It also describes Spring's Model-View-Controller architecture and how Spring supports aspects like logging and integration with big data technologies and databases. The document concludes with an overview of building a web application demo using Spring.
2. What will you learn today?
Introduction to Spring Framework
Dependency Injection
Spring MVC Architecture
Spring with Big Data
Build a Web Application using Spring(Demo)
3. Java Frameworks
In Java technology there are frameworks that helps the programmers to build distributed applications easily.
Example:
» Hibernate Object Relationship Mapping Framework
» Struts Web UI Framework
» Enterprise Java Beans Oracle’s specification for server side components for persistence & messaging
» Log4J Apache’s Framework for logging
4. Java Frameworks
Problem:
» Applications that use the varied frameworks and services face scalability issues
» A lot of plumbing code needs to be written
Need:
» Applications that use a number of frameworks and services have to remain maintainable
» Code should be loosely coupled with the frameworks so that testing and reusability becomes easy
5. Spring time...
Open source (http://projects.spring.io/spring-framework/)
Rod Johnson started SpringSource company and developed
Spring framework for Apache 2.0 in June 2003.
6. Spring Framework
Spring Framework provides a light-weight solution to develop maintainable and reusable enterprise applications
It provides simple and rich facilities to integrate various frameworks, technologies and services in the
application
7. Spring Architecture
AOP Aspects Instrumentation
Test
JDBC ORM
OXM JMS
Transactions
Web Servlet
Portlet Struts
Beans Core Context
Expression
Language
WEB (MVC/Remoting)
Spring Framework Runtime
Data Access/Integration
Core Container
8. Dependency Injection
Central to the Spring Framework is Inversion of Control (IoC)
Provides consistent means of configuring and managing
business objects
Objects created by the container are also called managed
objects or beans
The container can be configured by XML or Java Annotations
10. Model-View-Controller (MVC) Architecture
Model-View-Controller architecture is used for interactive web-applications. This model minimizes the coupling between
business logic and data presentation to web user. This model divides the web based application into three layers:
» Model: Model domain contains the business logics and functions that manipulate the business data. It provides
updated information to view domain and also gives response to a query. And the controller can access the
functionality which is encapsulated in the model
» View: View is responsible for presentation aspect of application according to the model data and also responsible
to forward query response to the controller
» Controller: Controller accepts and intercepts user requests and controls the business objects to fulfil these
requests. An application has one controller for related functionality. Controller can also be depends on the type of
clients
11. Aspect Oriented Programming Support
AOP address cross cutting concerns
A typical use cases of AOP is generating logs
12. Big Data Extensions
Spring XD (Xtreme Data) is a unified platform for
» Data ingestion,
» Real time analytics,
» Batch processing, and
» Data export.
/
13. Big Data Extensions
Commons JPA MongoDB Redis
Solr KeyValue Hadoop
Cassandra Elasticsearch Neo4j
Spring Data projects (http://projects.spring.io/spring-data/) provides consistent approach to access big data stores.
Main Modules
CommunityModules
REST
16. Course Details
Become an Expert in Spring Framework byTIBAcademy
Go to http://www.traininginbangalore.com/spring-training-in-bangalore/
TIBAcademySpring Framework course:
• This course covers all the concepts that made Spring probably the most popular Java application framework. Starting from
Dependency Injection to how to create first spring application, integrating maven, Aspect Oriented Programming (AOP),
integrating Hibernate with Spring, Building application using Spring MVC, Using Apache tiles and JSF for making user view,
Making your spring application secure, Using Log4j as logger and writing test cases with Junit.
• At the end of the course, we will also create a web application using Spring Framework.
• Really Time projet
• Hands on training
17. Thank YouBest IT training Institute in Bangalore
For More Query
+91 9513332301/02