问题描述
与 ,应用程序仅使用Spring 3.0 依赖注入所需的最小依赖项是什么?应用程序上下文仅由XML配置。 Spring依赖于日志框架,所以假设我已经包含了这些JAR用于日志记录:
Similarly to this question regarding an earlier Spring version, what are the minimum dependencies required for an application to use Spring 3.0 dependency injection only? The application context will be configured by XML only. Spring depends on a logging framework, so assume I already include these JARs for logging:
- jcl-over-slf4j.jar
- logback-classic.jar
- logback-core.jar
- slf4j-api.jar
- jcl-over-slf4j.jar
- logback-classic.jar
- logback-core.jar
- slf4j-api.jar
推荐答案
如另一个答案所述,maven是真正的道路。如果;然而,你选择流浪,然后根据
的部分1.2.1核心容器我相信这些是核心弹簧功能的最小罐子:
As stated in another answer, maven is the true path. If; however, you choose to stray, then based on section "1.2.1 Core Container" of theSpring Reference I believe these to be the minimum jars for core spring functionality:
- org.springframework.asm-3.0.4.RELEASE.jar
- org.springframework.beans-3.0.4.RELEASE.jar
- org.springframework.context-3.0.4.RELEASE.jar
- org.springframework.core-3.0.4.RELEASE.jar
- org .springframework.expression-3.0.4.RELEASE.jar
- org.springframework.asm-3.0.4.RELEASE.jar
- org.springframework.beans-3.0.4.RELEASE.jar
- org.springframework.context-3.0.4.RELEASE.jar
- org.springframework.core-3.0.4.RELEASE.jar
- org.springframework.expression-3.0.4.RELEASE.jar
编辑:使用wiki格式对列表进行排序。
Edited: sorted the list, using wiki formatting.
针对Spring 3.2进行了更新:似乎asm不是3.2发行版的一部分。下面是Spring 3.2的列表:
Updated for Spring 3.2: It seems that asm is not part of the 3.2 distribution. Below is the list for Spring 3.2:
- spring-beans-3.2.0.RELEASE.jar
- spring-context-3.2.0.RELEASE.jar
- spring-core-3.2.0.RELEASE.jar
- spring-expression- 3.2.0.RELEASE.jar
- spring-beans-3.2.0.RELEASE.jar
- spring-context-3.2.0.RELEASE.jar
- spring-core-3.2.0.RELEASE.jar
- spring-expression-3.2.0.RELEASE.jar
这篇关于Spring 3.0依赖注入的最小JAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!