此内容没有您所选择的语言版本。

15.5. RESTEasy Configuration


15.5.1. RESTEasy Configuration Parameters

Table 15.2. Elements
Option Name Default Value Description
resteasy.servlet.mapping.prefix No default If the url-pattern for the Resteasy servlet-mapping is not /*.
resteasy.scan false Automatically scan WEB-INF/lib jars and WEB-INF/classes directory for both @Provider and JAX-RS resource classes (@Path, @GET, @POST etc..) and register them.
resteasy.scan.providers false Scan for @Provider classes and register them.
resteasy.scan.resources false Scan for JAX-RS resource classes.
resteasy.providers no default A comma delimited list of fully qualified @Provider class names you want to register.
resteasy.use.builtin.providers true Whether or not to register default, built-in @Provider classes.
resteasy.resources No default A comma delimited list of fully qualified JAX-RS resource class names you want to register.
resteasy.jndi.resources No default A comma delimited list of JNDI names which reference objects you want to register as JAX-RS resources.
javax.ws.rs.Application No default Fully qualified name of Application class to bootstrap in a spec portable way.
resteasy.media.type.mappings No default Replaces the need for an Accept header by mapping file name extensions (like .xml or .txt) to a media type. Used when the client is unable to use a Accept header to choose a representation (i.e. a browser).
resteasy.language.mappings No default Replaces the need for an Accept-Language header by mapping file name extensions (like .en or .fr) to a language. Used when the client is unable to use a Accept-Language header to choose a language (i.e. a browser).
resteasy.document.expand.entity.references false Whether to expand external entities or replace them with an empty string. In JBoss EAP 6, this parameter defaults to false, so it replaces them with an empty string.
resteasy.document.secure.processing.feature true Impose security constraints in processing org.w3c.dom.Document documents and JAXB object representations.
resteasy.document.secure.disableDTDs true Prohibit DTDs in org.w3c.dom.Document documents and JAXB object representations.

Important

In a Servlet 3.0 container, the resteasy.scan.* configurations in the web.xml file are ignored, and all JAX-RS annotated components will be automatically scanned.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.