【发布时间】:2021-05-16 09:30:38
【问题描述】:
我正在根据这个 repo https://github.com/apache/myfaces/tree/master/extensions/quarkus/showcase 试验 Quarkus + Myfaces/Primefaces。
我在这里尝试包含 Prettyfaces 以获得更好的 URL。更具体地说,我正在尝试按照本指南使用 OCPSOFT Rewrite https://github.com/ocpsoft/rewrite/blob/master/documentation/src/main/asciidoc/configuration/annotations/index.asciidoc 使用注解。
在我看来,在使用注释时,我只需要在 pom 中添加依赖项并像这样注释页面:@Join(path="/welcome", to="/demo/index.xhtml") 。我都做了,可以看看
“RewritePhaseListener 启动”
在控制台中,但 URL /welcome 不起作用。有人在 Quarkus 中有 Rewrite 的工作示例吗?
【问题讨论】:
-
这是本地模式还是JVM模式? “不工作”是什么意思? 404错误?
-
JVM,它已经不能在开发模式下工作。而“不起作用”只是意味着localhost:8080/welcome 不可用...
标签: jsf primefaces quarkus prettyfaces