以下依赖项之间有什么区别?
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
与
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
如果我spring-webmvc单独包含,spring-web则被隐式添加。
我们spring-web什么时候应该单独使用?
spring-webmvcinturnspring-web,但是说如果您的spring-webmvc版本为4.0.2,并添加另一个依赖项,例如swagger-springmvc版本0.8.8,则它添加了3.2.xspring-web版本。在这种情况下,您可能会得到未找到类的异常,因此,在这里,您必须显式添加spring-web版本4.0.2。我今天遇到了