如何在Eclipse中查看Spring Framework Javadoc? [英] How to view the Spring Framework Javadoc in Eclipse?

查看:611
本文介绍了如何在Eclipse中查看Spring Framework Javadoc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含Spring Framework API文档的HTML文件的文件夹, http://docs.spring.io/spring/docs/3.2.4.RELEASE/javadoc-api/

I have a folder full of HTML files that comprise the Spring Framework API documentation, http://docs.spring.io/spring/docs/3.2.4.RELEASE/javadoc-api/.

我想要的是能够将鼠标悬停在Eclipse中的Spring方法/接口/ etc的名称上(如ClassPathXmlApplicationContext类),并从这些文档中显示解释。目前,我得到的是注意:这个元素既没有附加源也没有附加Javadoc,因此找不到Javadoc。

What I'd like is to be able to hover over the name of a Spring method/interface/etc in Eclipse (like the ClassPathXmlApplicationContext class) and have the explanation appear from those documents. At the moment, what I get is "Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found".

有没有办法告诉Eclipse实现该文件夹及其子文件夹以使这些Javadoc工作?我是否必须先以某种方式打包它们?我正在使用Spring Tool Suite,或者我可以使用常规的Eclipse。

Is there a way to tell Eclipse to implement that folder and its subfolders to make those Javadocs work? Do I have to package them in some way first? I'm using the Spring Tool Suite, or I can use regular Eclipse.

我尝试了其他答案中推荐的一些东西,但我不知道发生了什么。

I've tried some things that were recommended in other answers, but I don't know what's going on.

如果有人可以提供帮助,那就太好了。

If anyone can help, that would be nice.

推荐答案

转到项目的属性并选择 Java Build Path ,然后选择名为 Libraries 的选项卡,你可以扩展任何jar来选择源附件 Javadoc位置然后点击编辑按钮。在出现的对话框中,您可以使用源代码或Javadoc的位置路径或URL指定文件夹,JAR或zip。

Go to the properties of your project and select Java Build Path, then select the tab called Libraries, there you can expand any jar to select either Source attachment or Javadoc location and click the Edit button. In the dialog that appears you can specify the folder, JAR or zip with the source code, or the location path or URL of the Javadoc.

希望这会有所帮助。

这篇关于如何在Eclipse中查看Spring Framework Javadoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆