重写野生蝇的引擎 [英] Rewrite engine for wildfly

查看:201
本文介绍了重写野生蝇的引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在没有任何第三方库的情况下为Wildfly应用程序服务器使用Rewrite引擎。我曾尝试使用 RewriteValve ,但它不适用于Wildfly 8.x

I'm wondering if It's possible to use Rewrite engine for Wildfly application server without any third-party library. I have tried to use RewriteValve, but it did not work with Wildfly 8.x

如果不可能,是否有可用的小型库?

If it's not possible, Is there any tiny library to use?

推荐答案

您可以使用谓词属性和处理程序,您必须将文件 undertow-handlers.conf 添加到 WEB-INF 带有规则的目录。

You can use Predicates Attributes and Handlers provided by undertow, you must add the file undertow-handlers.conf into WEB-INF directory with the rules.

另一种选择是使用 prettyfaces

这篇关于重写野生蝇的引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆