1 / 48

What Is Spring Framework In Java | Spring Framework Tutorial For Beginners With Examples | Edureka

This Edureka "What Is Spring Framework" tutorial will help you in understanding the fundamentals of Spring Framework and build a strong foundation in Spring. Below are the topics covered in this tutorial: <br><br>1. Java Frameworks <br>2. Spring Framework <br>3. Why Spring Framework? <br>4. Spring Architecture <br>5. Spring Modules <br>6. Spring Features

EdurekaIN
Télécharger la présentation

What Is Spring Framework In Java | Spring Framework Tutorial For Beginners With Examples | Edureka

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  2. Agenda For Today Java Frameworks Spring Framework Why Spring Framework? ` Architecture Modules Spring Features EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  3. Java Frameworks ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  4. Java Frameworks So much of code !!!! ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  5. Java Frameworks Need something that is fast and efficient ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  6. Java Frameworks Ohh! I can use Java Framework! ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  7. Java Frameworks This fits with my code too ! ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  8. Java Frameworks Problem Solved !! ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  9. Java Frameworks Applications speed and efficiency increased ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  10. Java Framework Principle Abides the Hollywood Principle that is “Don’t call us, we’ll call you”. Also called Inversion of flow or Inversion of Control Class B Class A Dependency ` Class C Class B Class A Injection Class C EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  11. Different Java Frameworks ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  12. Different Java Frameworks ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  13. Spring Framework

  14. Spring Origin First version of Spring was first released on February 2003, By Rod Johnson. ` Spring has been hosted on SourceForge since January 2003. EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  15. Spring History ` 4.2.0 4.3 0.9 2.0 2.5 3.0 3.1 4.0 1.0 2003 2004 2006 2009 2011 2013 2015 2016 2007 YEAR EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  16. Definition Spring is a complete and a modular framework for developing enterprise applications in java. ` spring framework can be used for implementations a real time application spring can be used for the development particular layer of a real time application all layer for of EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  17. Features Of Spring ` Avails array of resources Framework of Frameworks Comprehensive Tool Open Source Solves Problems Light Weight EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  18. Why Spring Framework ?

  19. Uses Of Spring Over Other Frameworks ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  20. Why Spring Is So Popular ? These 3 are basically the main reasons for its popularity. Lets now understand how they are exactly making it so SI M PL I C I T Y ` TE STA B L I T Y LO O SE CO UPL I N G EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  21. Simplicity Spring framework is simple because as it is non-invasive. It uses POJO and POJI SI M PL I C I T Y If a java class is not coupled with any technology (or) any framework then that java class is called “POJO” (plain old java class) ` TE STA B L I T Y public class MyClass { … … … } LO O SE CO UPL I N G EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  22. Simplicity If a java interface is not coupled with any technology (or) any frame work then such java interface is called “POJI” (plain old java interface) SI M PL I C I T Y ` TE STA B L I T Y public interface MyInterface { … … … } LO O SE CO UPL I N G EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  23. Testablity Actually for writing the spring application, server [Container] is not mandatory because it has it own container to run the applications SI M PL I C I T Y Java POJO Classes ` TE STA B L I T Y MetaData Spring Container Final Result LO O SE CO UPL I N G Ready To Use Application EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  24. Loose Coupling Spring the core concept of spring framework objects are loosely coupled, this is SI M PL I C I T Y class Rider { Bike b; public void setBike(Bike b) { this.b = b; } Interface Bike { void start(); } ` TE STA B L I T Y void ride() { b.start(); } Honda Bajaj Yamaha } Classes LO O SE CO UPL I N G Spring container will inject either Honda object or Bajaj object or Yamaha object into the Rider class by calling setter method EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  25. Spring Framework Ecosystem ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  26. Architecture

  27. Spring Architecture ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  28. Modules

  29. Spring Modules o The Spring Framework contains a lot of features, which are well-organized in about twenty modules. o These modules can be grouped together based on their primary features into following: Core Container Data Access/Integration ` Web AOP (Aspect Oriented Programming) Instrumentation Test EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  30. Modules-Core Container Core Beans Provide the fundamental parts of the framework Provides BeanFactory ` CoreContainer Context SpEL Provides a powerful expression language Supports internationalizatio n (I18N), EJB, JMS, Basic Remoting EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  31. Modules-Data Access JDBC ORM Provides integration layers Provides a JDBC- abstraction layer ` DataAccess JMS OXM Transaction Supports programmatic and declarative transaction management Contains features for producing and consuming messages Provides an abstraction EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  32. Modules-Web Web Web MVC Provides basic web-oriented integration features Contains Spring's Model-View- Controller (MVC) implementation ` Web Web Portlet Web Socket Provides the MVC implementation used in a portlet environment Provides support for WebSocket- based, two-way communication EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  33. Modules-Miscellaneous AOP Instrumenting Provides class instrumentation support and class loader implementations Provides an aspect-oriented programming implementation ` Miscellaneous Messaging Aspects Test Provides support for STOMP as the WebSocket sub- protocol to use in applications Supports the testing of Spring components with JUnit or TestNG frameworks Provides integration with AspectJ EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  34. Dependency Injection MVC AOP IoC

  35. IoC Container Features Creating The Object Wiring Them Together ` Configuring Them Managing Their Complete Life Cycle EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  36. IoC Container Java POJO Classes MetaData The Spring IoC container by using Java POJO classes and configuration metadata produces a fully configured and application. Spring Container ` executable system or Final Result Ready To Use Application EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  37. IoC Container Configured by loading the XML files or by detecting specific Java annotations on configuration classes. ` Two types of IoC containers : BeanFactory ApplicationContext EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  38. Dependency Injection MVC IoC AOP

  39. Dependency Injection Removes the dependency from the programming code ` Makes the Application easy to manage and test Makes our programming code loosely coupled EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  40. Types Of Dependency Injection Spring framework avails two ways to inject dependency : 1 ` By Constructor The <constructor-arg> subelement of <bean> is used for constructor injection 2 The <property> subelement of <bean> is used for setter injection By Setter method EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  41. Dependency Injection MVC IoC AOP

  42. Aspect Oriented Programming 1 Providing modularity with aspect rather than class. 2 AOP breaks the program logic into distinct parts called concerns ` 3 Increases modularity by cross-cutting concerns 4 A cross-cutting concern is a concern which can affect the entire application EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  43. Aspect Oriented Programming Crosscutting concern is applicable throughout the application and it affects the entire application modules Application ` Cross cutting concern Module 1 Module 3 Module 2 EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  44. MVC Dependency Injection IoC AOP

  45. Model View Controller User input is interpreted by the controller and are transformed into a model which is represented to the user by the view. Browser Model ` Request Controller View Response User EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  46. Summary Java Frameworks Spring Framework Why Spring Frameworks ? ` Spring Features Architecture Modules EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework

  47. Thank You … Questions/Queries/Feedback

More Related