如何解决如何在JDK 14上从Javadocs生成标准规范?
有人知道swagger-doclet的类比,但是与JDK 14兼容吗?
此doclet通过javax.ws.rs
批注和javadocs生成swagger规范,并且不需要swagger批注
例如,我有这样的端点:
/**
* Receives sync requests from the clients and puts the received event to the queue with partition key based on the user's id.
*
* @param thriftRequest user's event
* @return the number of users in the saved event.
*/
@POST
@Path("/notifications")
@Timed
public TNotificationsResponse notifications(final TNotificationsRequest thriftRequest) {
...
}
我尝试了swagger-core
,但它生成的规范忽略了javadocs:(
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。