如何在Eclipse中为Servlet API添加Javadoc [英] How to add Javadoc for Servlet API in Eclipse
问题描述
我不能添加Javadoc路径Tomcat Servlet API:如图所示,编辑按钮始终被禁用!
替代文字http://filaty.com/i/1005/80306/tom.JPG
在Package Explorer中您的项目将转到 Java Resources> Libraries 。右键单击 servlet-api.jar
,选择属性并指定源位置( apache-tomcat-xxx-src
另一种方法是使用 Ctrl + 打开任何Servlet API类Shift + T 或 Ctrl +单击现有代码中的任何导入/声明,然后单击附加源... 按钮并在那里指定。
I've a dynamic web app in Eclipse that is using Tomcat as runtime environment.
I cannot add Javadoc path Tomcat Servlet API: as appears, the edit button is always disabled!
alt text http://filaty.com/i/1005/80306/tom.JPG
In Package Explorer of your project go to Java Resources > Libraries. Rightclick servlet-api.jar
, choose Properties and specify the source location there (the apache-tomcat-x.x.x-src.zip
file).
Another way is to just open any Servlet API class using Ctrl+Shift+T or by Ctrl+Click on any import/declaration in existing code and then click the Attach Source... button and specify it there.
这篇关于如何在Eclipse中为Servlet API添加Javadoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!