Javadoc使用相对路径链接到src / main / resource或src / test / resource文件

如果有一种方法可以将javadoc中的链接放入驻留在src / main / resources或src / test / resources中的标准资源文件,以便其他编码器可以快速导航到资源文件(在此case一个JSON文件)。

这些文件用于unit testing,需要在架构更改时经常进行修改。

这里的答案链接到Javadoc中的文本文件(资源)没有帮助,因为绝对路径太脆弱了。

有没有办法和@see一样做资源? 如果javadoc本身不足,那么IntelliJ特有的东西会很棒。

无需提及绝对路径。 请参阅下面的我的包和类结构。 从姐妹包中,如果我遵循URI规则,我会做..去一个文件夹,然后像这样提到它。 有用! 单击该URL时,文件将打开。 虽然我已经在eclipse中说明了这一点,但我认为这应该是IDE不可知的。

 /** * Removes all the stop words like a, for, the etc. from the text. For a * full list of stop words check * /resources/stopWords.txt * * @return String free of all the stop-words * @param text * The string to be cleaned, do null check at your end */ 

在此处输入图像描述

包装结构