Setup
@Component
public class JerseyConfig extends ResourceConfig {
public JerseyConfig() {
this.registerClasses(
OpenApiResource.class
);
}
}
当我开始申请时,请大家看一下所生成的APICSpec:80/openapi.json。 我发现两条道路:
GET /application.wadl/{path}
andGET /application.wadl
在Swagger UI公司,它喜欢:
When I send a request to the WADL endpoint, I get a 404 response in this setup. I already tried to disable the WADL feature with this line, but the spec still contains the two paths:
this.property(ServerProperties.WADL_FEATURE_DISABLE, true);
Question
我如何正确对待或掩饰这两个途径?