I need to run the Spring-MVC in my scratch project. At the same time i have minimum memory area to store all the jar files. So any body recommend me only need for the Spring-MVC not any other jar files. Thanks in Advance.
Asked
Active
Viewed 2.8k times
2 Answers
3
according to maven, spring-webmvc 3.1.2
need following jar:
- aopalliance-1.0.jar
- commons-logging-1.1.1.jar
- spring-webmvc-3.1.2.RELEASE.jar
- spring-asm-3.1.2.RELEASE.jar
- spring-beans-3.1.2.RELEASE.jar
- spring-core-3.1.2.RELEASE.jar
- spring-context-3.1.2.RELEASE.jar
- spring-aop-3.1.2.RELEASE.jar
- spring-expression-3.1.2.RELEASE.jar
- spring-context-support-3.1.2.RELEASE.jar
- spring-web-3.1.2.RELEASE.jar
things provided by servlet container (f.e. servlet-api) are left out.

Yevgeniy
- 2,614
- 1
- 19
- 26
-
You should probably note that he should not use commons logging but instead SLF4J. Spring even recommends not using or depending on it. – Adam Gent Dec 04 '12 at 19:37
-
@AdamGent thx for the good advice. in case of a novice i usually conceale the existence of slf4j, because the api/impl dependencies in slf4j can be tricky to setup. – Yevgeniy Dec 04 '12 at 21:12
2
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.1.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.1.0.RELEASE</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.1.0.RELEASE</version>
</dependency>

NimChimpsky
- 46,453
- 60
- 198
- 311
-
-
2the answer makes only sence if he uses maven and helps him only if he runs `mvn dependency:tree`... why giving such a useless answer? – Yevgeniy Dec 03 '12 at 14:58