【发布时间】:2015-07-24 15:10:46
【问题描述】:
我正在配置我的 resteasy 应用程序,需要关闭自动扫描(两个 jaxrs 应用程序在类路径中,加载时中断)
因此,我将 web.xml 配置如下:
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>resteasy.resources</param-name>
<param-value>
io.swagger.jaxrs.listing.ApiListingResource,
com.mycompany.resource.ClientResource,
com.mycompany.resource.AccountResource,
... etc
</param-value>
</context-param>
resteasy 有什么方法可以按包 (com.mycompany.resource.*) 名称进行扫描,而不必添加每个资源? jaxrs 似乎可以,但不能轻松
【问题讨论】:
标签: java rest configuration resteasy web.xml