spring framework and architecture dependencies module jar

Spring herein JAR packages for use and configuration, users material spring 4.3.6.RELEASE combined version, for example, describes the frame structure and each spring module corresponds JAR JAR package and dependencies between modules.

Note: Different versions of JAR package depends on will be different

spring official website shows the structure of a spring4

  

FIG spring may be considered simply divided into five parts: core, aop, data access, web, test, FIG rounded rectangle corresponds to each of a respective jar package, if disposed in maven, all of the jar "groupId" are "org.springframework", each jar has a different "artifactId", giving a total of 20 official JAR package

Digression, JAR packages for download, in addition to the official gives rely on automatic downloads via maven and gradle, you can also directly download the full amount of the ZIP package at the following address, but for spring JAR package dependent jar package needs its own additional downloads

http://repo.spring.io/release/org/springframework/spring/

Here jar dependencies and five parts

core portion comprises four modules

1, spring-core: basic realization IoC dependency injection to DI, the corresponding spring-core-4.3.6.RELEASE.jar

2, spring-beans: Bean bean plants and assembly, the corresponding spring-beans-4.3.6.RELEASE.jar

3, spring-context: spring context to context i.e. IoC container, comprising two JAR package, the corresponding spring-context-4.3.6.RELEASE.jar and spring-context-support-4.3.6.RELEASE.jar, wherein the support is spring additional support packages, such as mail service, view resolution, etc.

4, spring-expression: spring expression language, the corresponding spring-expression-4.3.6.RELEASE.jar

Their complete dependence

   

Because the spring-core relied commons-logging, while other modules are dependent on the spring-core, so the entire spring framework relies a commons-logging, if you have your own logging implementation as log4j, you can exclude reliance on commons-logging, there is no log achieve the exclusion of commons-logging-dependent compiler error

   

aop portion comprises four modules

1, spring-aop: Oriented Programming, the corresponding spring-aop-4.3.6.RELEASE.jar

2、spring-aspects:集成AspectJ,对应spring-aspects-4.3.6.RELEASE.jar

3, spring-instrument: class-level tools provide support and enable ClassLoader level for the server, the corresponding spring-instrument-4.3.6.RELEASE.jar, jar achieved while providing spring-instrument-tomcat package for the instrument tomcat -4.3.6.RELEASE.jar

4, spring-messaging: Construction of a spring-messaging-4.3.6.RELEASE.jar of message-based applications

Their dependencies

  

data access section comprises five modules

1, spring-jdbc: jdbc support, the corresponding spring-jdbc-4.3.6.RELEASE.jar

2, spring-tx: transaction control, the corresponding spring-tx-4.3.6.RELEASE.jar

3, spring-orm: object-relational mapping, integration orm frame, the corresponding spring-orm-4.3.6.RELEASE.jar

4, spring-oxm: xml objects mapping, the corresponding spring-oxm-4.3.6.RELEASE.jar

5, spring-jms: java messaging service, the corresponding spring-jms-4.3.6.RELEASE.jar

Their dependencies

  

web portion comprises four modules

1、spring-web:基础web功能,如文件上传,spring-web-4.3.6.RELEASE.jar

2、spring-webmvc:mvc实现,对应spring-webmvc-4.3.6.RELEASE.jar

3、spring-webmvc-portlet:基于portlet的mvc实现,对应spring-webmvc-portlet-4.3.6.RELEASE.jar

4、spring-websocket:为web应用提供的高效通信工具,对应spring-websocket-4.3.6.RELEASE.jar

它们的依赖关系

  

​test部分只有一个模块,

1、spring-test:spring测试,提供junit与mock测试功能,对应spring-test-4.3.6.RELEASE.jar

它们的依赖关系

  

到这里,spring4的结构、JAR包以及依赖关系介绍就完了,看完这些图相信对整个Spring结构以及所需JAR包都有清晰了解,同时对于在maven中配置spring依赖时也不会再混乱了。

 

参考:https://www.jianshu.com/p/5b0c96975164

Guess you like

Origin www.cnblogs.com/116970u/p/11441868.html