SlideShare a Scribd company logo
Getting Started with Spring Framework
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)
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
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
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.
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
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
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
Model-View-Controller (MVC) Architecture
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
Aspect Oriented Programming Support
 AOP address cross cutting concerns
 A typical use cases of AOP is generating logs
Big Data Extensions
 Spring XD (Xtreme Data) is a unified platform for
» Data ingestion,
» Real time analytics,
» Batch processing, and
» Data export.
/
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
Spring - Job Trends
Demo: Spring based Web Application
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
Thank YouBest IT training Institute in Bangalore
For More Query
+91 9513332301/02

More Related Content

Spring tutorials

  • 1. Getting Started with Spring Framework
  • 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
  • 14. Spring - Job Trends
  • 15. Demo: Spring based Web Application
  • 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