1
我有一个Jersey REST应用程序。它在/application.wadl下暴露它的wadl。我如何关闭它到外部,或者如何从/application.wadl更改它的URL?如何关闭发布application.wadl?
我有一个Jersey REST应用程序。它在/application.wadl下暴露它的wadl。我如何关闭它到外部,或者如何从/application.wadl更改它的URL?如何关闭发布application.wadl?
目前,您只能对整个应用程序禁用它(不可能在不同的路径上公开它)。 Set property
jersey.config.server.wadl.disableWadl
to true
。你可以在javadoc找到更多关于此属性的信息:ServerProperties.WADL_FEATURE_DISABLE。