`
xpower
  • 浏览: 6253 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

Spring Framework : What is Spring?

阅读更多
到底Spring是什么?能用来干什么?如果你刚接触Spring,下面的文章肯定适合你。
Spring is grate framework for development of Enterprise grade applications. Spring is a light-weight framework for the development of enterprise-ready applications. Spring can be used to configure declarative transaction management, remote access to your logic using RMI or web services, mailing facilities and various options in persisting your data to a database. Spring framework can be used in modular fashion, it allows to use in parts and leave the other components which is not required by the application.

Features of Spring Framework:

Transaction Management: Spring framework provides a generic abstraction layer for transaction management. This allowing the developer to add the pluggable transaction managers, and making it easy to demarcate transactions without dealing with low-level issues. Spring's transaction support is not tied to J2EE environments and it can be also used in container less environments.
   
JDBC Exception Handling: The JDBC abstraction layer of the Spring offers a meaningful exception hierarchy, which simplifies the error handling strategy
 
Integration with Hibernate, JDO, and iBATIS: Spring provides best Integration services with Hibernate, JDO and iBATIS.
 
AOP Framework: Spring is best AOP framework
   
MVC Framework: Spring comes with MVC web application framework, built on core Spring functionality. This framework is highly configurable via strategy interfaces, and accommodates multiple view technologies like JSP, Velocity, Tiles, iText, and POI. But other frameworks can be easily used instead of Spring MVC Framework..
Spring Architecture

Spring is well-organized architecture consisting  of seven modules. Modules in the Spring framework are:

Spring AOP
One of the key components of Spring is the AOP framework. AOP is used in Spring:
To provide declarative enterprise services, especially as a replacement for EJB declarative services. The most important such service is declarative transaction management, which builds on Spring's transaction abstraction.

To allow users to implement custom aspects, complementing their use of OOP with AOP

Spring ORM
The ORM package is related to the database access. It provides integration layers for popular object-relational mapping APIs, including JDO, Hibernate and iBatis.
  
Spring Web
The Spring Web module is part of Spring  web application development stack, which includes Spring MVC.
   
Spring DAO
The DAO (Data Access Object) support in Spring is primarily for standardizing the data access work using the technologies like JDBC, Hibernate or JDO.
   
Spring Context
This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.
  
Spring Web MVC
This is the Module which provides the MVC implementations for the web applications.
  
Spring Core
The Core package is the most import component of the Spring Framework.
This component provides the Dependency Injection features. The BeanFactory  provides a factory pattern which separates the dependencies like initialization, creation and access of the objects from your actual program logic.
The following diagram represents the Spring Framework Architecture
                                                                          Spring Framework Architecture

分享到:
评论

相关推荐

    Beginning Spring 5: From Novice to Professional

    Get started with Spring Framework 5 and its ecosystem, with a guide to the working practices in modern development. This book will teach you how to use the Spring Framework to build Java-based ...

    Spring Recipes: A Problem-Solution Approach, Second Edition

    With over 3 Million users/developers, Spring Framework is the leading “out of the box” Java framework. Spring addresses and offers simple solutions for most aspects of your Java/Java EE application ...

    Beginning Spring Boot 2 Applications and Microservices with the Spring Framework

    This book will help you understand what Spring Boot is, how Spring Boot helps you build Spring-based applications quickly and easily, and the inner workings of Spring Boot using easy-to-follow ...

    Spring3.2(Spring-Framework-Reference 3.2)

    此外,文件内容在“II.What's New in Spring 3”部分深入探讨了Spring 3中新增的特性和增强功能。Spring Framework 3.0引入了对Java 5的支持,改进了文档,新增了文章和教程,同时对模块组织和构建系统进行了改进。...

    The Definitive Guide to Spring Batch, 2nd Edition.epub

    Discover what is new in Spring Batch 4 Carry out finite batch processing in the cloud using the Spring Batch project Understand the newest configuration techniques based on Java configuration and ...

    Pro Spring Boot 2第2版-2009-EPUB版

    It will also cover what's been added to the new Spring Boot 2 release, including Spring Framework 5 features like WebFlux, Security, Actuator and the new way to expose Metrics through Micrometer ...

    Pro Spring MVC With Web Flow

    What you'll learn Key Spring Framework fundamentals How to use the ...What isand how to use the Spring Web Flow framework How to test your Spring MVC applications How to implement Spring Security Who ...

    spring-framework-reference-4.1.2

    What’s New in Spring Framework 4.x .................................................................................... 16 3. New Features and Enhancements in Spring Framework 4.0 .....................

    Spring Boot 2 Recipes: A Problem-Solution Approach

    framework, then dives into code snippets on how to apply and integrate Spring Boot 2 with the Spring MVC web framework, Spring Web Sockets, and microservices. You'll also get solutions to common ...

    Spring.Essentials.178398

    If you are a Java developer who is looking to master Enterprise Java Development using Spring Framework, then this book is ideal for you. Prior understanding of core Java programming and a high-level ...

    Beginning-Spring-Boot-2.pdf

    This book will help you understand what Spring Boot is, how Spring Boot helps you build Spring-based applications quickly and easily, and the inner workings of Spring Boot using easy-to-follow ...

    Packt.Spring.5.0.Projects.rar

    Secure Spring based web application using Spring Security framework with LDAP and OAuth protocol Develop robust and scalable microservice based applications on Spring Cloud, using Spring Boot Book ...

    Pro Spring 5(Apress,5ed,2017).pdf

    Discover what’s new in Spring Framework 5 Use the Spring Framework with Java 9 Master data access and transactions Work with the new functional web framework Create microservices and other web ...

    pro spring batch

    What you'll learn * Batch concepts and how they relate to the Spring Batch framework * How to use declarative I/O using the Spring Batch readers/writers * Data integrity techniques used by Spring ...

    Pro Spring 3

    How to get started with the Spring Framework and its latest features What Inversion of Control (IoC) and dependency injection (DI) are Aspect-oriented programming techniques with Spring, and why they...

Global site tag (gtag.js) - Google Analytics