Jersey 如何从JDK14上的Javadocs生成swagger规范?
有人知道JDK 14的类似功能吗? 这个doclet通过Jersey 如何从JDK14上的Javadocs生成swagger规范?,jersey,swagger,java-ws,Jersey,Swagger,Java Ws,有人知道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
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的规范:(