【发布时间】:2018-04-16 04:11:42
【问题描述】:
我想完成与这个问题相同的事情:Disable automatic Wadl Generation for OPTIONS request,但我们没有web.xml 文件。我们还使用了ResourceConfig,其中getProperties 方法是最终的,所以我不能按照other questions 中的建议覆盖它。我尝试在扩展ResourceConfig 的类中调用property("com.sun.jersey.config.feature.DisableWADL", "true");,但没有成功。
如何禁用 WADL?
我们使用的是 Jersey 2.25.1。我尝试阅读the Jersey docs on WADL,但无法阅读该页面,因为弹出错误消息说明有关 syntaxhighlightingerror/xml 刷子的内容。
【问题讨论】:
标签: jakarta-ee java-8 jersey glassfish