【问题标题】:How to find appropriate entry for a pom online?如何在网上找到合适的 pom 条目?
【发布时间】:2012-10-28 16:55:01
【问题描述】:

我正在尝试为

找到合适的 pom 条目
org.springframework.web.servlet-3.1.2.RELEASE.jar

访问了网页,但没有更多内容

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>3.1.2.RELEASE</version>
</dependency>

最终我需要导入

import org.springframework.web.servlet.ModelAndView;

但我无法在here 中找到这个罐子。找到了我需要的一切,但 servlet。

请帮忙

【问题讨论】:

  • 您是否尝试过将spring-web 添加为项目的依赖项?
  • spring-web 工件被添加为如上所示的依赖项

标签: java spring maven pom.xml


【解决方案1】:

您需要的课程在spring-webmvc,见here。

www.findjar.com 网站对于查找包含特定类的 jar 非常有用。

【讨论】:

  • 谢谢!在这个例子中,你是怎么知道工件 id 是spring-webmvc?
  • 只需在 findJAR 上搜索完全限定的类名,您将获得所有匹配 jar 的列表。例如,ModelAndView。然后,如果需要确认 artefact ID,可以在 Maven Central 上搜索匹配的 jar。
猜你喜欢
  • 2011-08-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-02-03
  • 1970-01-01
相关资源
最近更新 更多