We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
看看阐明。有一个 Maven 插件,它将生成站点中包含的文档。
Take a look at Enunciate. There's a Maven plugin that will generate docs included in the site.
如果您正在构建 Restful Web 服务,则该文档称为 WADL。 WADL 基本上是 WSDL 的 Rest 版本。我使用 Jersey 构建我的 Restful Web 服务。 Jersey 根据您资源包中的注释自动创建 WADL。以下是 Jersey 网站上的 WADL 示例:
https://java.net/projects/jersey /sources/svn/show/trunk/jersey/samples/generate-wadl
最好的部分是你什么都不做。 :) 当您更改
Resource
类中的 URI 或参数注释时,它们将自动反映在本文档中。塔达! :)
If you are building Restful webservices, the documentation is known as WADL. WADL is basically Rest's version of WSDL. I use Jersey to build my Restful web services. Jersey automatically creates the WADL based on the annotations you have in your resources package. Here's how the sample WADL looks like from Jersey's website:
https://java.net/projects/jersey/sources/svn/show/trunk/jersey/samples/generate-wadl
The best part of this is you do absolutely nothing. :) When you change the URI or parameters annotation in your
Resource
classes, they will be automatically reflected in this documentation.TADAA! :)