最佳答案
What is the difference between the following dependencies?
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
vs
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
If I include spring-webmvc
alone then spring-web
is implicitly added.
When should we use spring-web
alone?