Getting Started 01 - Introduction Spring

xiaoxiao2021-03-06  46

Getting Started 01 - Introduction Spring

Spring is a lightweight J2EE application framework. The core of Spring is a lightweight container that implements the container of the IOC (Inversion of Control) mode. The target of Spring is to implement a full range of integrated frameworks that implements a combination of multiple sub-frames under the Spring framework. These subframes Options can be independent, or other framework schemes can be used, Spring wishes to provide one-stop shop's framework integration scenario Spring does not specifically propose some sub-frames to compete with existing OpenSource frameworks unless it is proposed. The frame is new enough, such as Spring has its own MVC framework scheme, because it feels a lot of existing MVC programs that can improve, but it doesn't force you to use it, you can choose the framework you want. To replace its sub-frame, for example, you can still integrate your Struts framework in Spring. The core concept of Spring is IOC. The abstraction of IOC is "transfers" dependencies ", like" high-level module should not rely on low-level modules, but modules must depend on abstraction "is an expression of IOC," implementation must depend on Abstract, not abstract dependence, is also a performance of IOC. "The application should not depend on the container, but the container service is also an expression of IOC. The IOC is clearly interpreted in the IOC's Inversion of Control Containers and the Dependency Injection Pattern, where you can learn more about IOC and DI in the following URLs: http: / / www.martinfowler.com/articles/injection.html

You can also take a look at these articles first, learn about dependency inversion: http://www.objectmentor.com/publications/dip.pdf

The core of Spring is an IOC / DI container that helps program designers complete component (categories) to implant (link), so that the dependence between components (categories) reaches minimal, which in turn increases components. Reuse, Spring is a low invasive framework, and the components in Spring will not realize that it is in Spring, which makes the component can be easily out of the frame, and almost no modification, in turn It is easy to add into the frame to simply add to the frame, making it easy to integrate the integration of the assembly even the framework. On the other hand, Spring is supported by the AOP (Aspect-Oriented Programming), but the AOP framework is just a sub-frame supported by Spring, saying that the Spring framework is not a proper description of the AOP framework, people are mapped to Novel AOP To Spring, people are concentrated on its AOP framework for Spring, but also highlights another focus of Spring. Spring also provides a solution for the MVC web framework, but you can also combine your familiar MVC web framework, like Struts, WebWork, etc., can be integrated with Spring to make your own solution. Spring also provides other integration, like a persistent layer, such as JDBC, O / R mapping tool (Hibernate, Ibatis), transaction, etc., Spring makes a multi-faceted effort, so Spring is a full range of Application framework. Want to get started, for IOC / D i's understanding is necessary, the above two URLs are a good start, and you can also first see "Spring Development Guide": http://www.xiaxin.net/spring_dev_guide If you want to know the overall concept of Spring, you can take a look at the book of Expert One ON One J2EE Development WITHOUT EJB. Spring is the actual situation of the previous book of the author. Expert One on One J2ee Design and Development. The program begins, and Spring itself is a lightweight container solution for J2EE. From this book, it is a good base construction method for the J2EE program design. Of course, if you are limited, you want to know Spring directly, you can start from this article: http://javaboutique.Internet.com/tutorials/spring_frame/

This book for Expert One ON One J2ee Development WITHOUT EJB, if you want to know Spring, you can see Chapter 7, Chapter 13. Other reference articles, you can look at the link in this partition "Spring" data.

转载请注明原文地址:https://www.9cbs.com/read-60933.html

New Post(0)