【发布时间】:2019-01-25 20:42:47
【问题描述】:
我想在请求 http url 时强制使用 https url。我在 Prettyfaces 论坛中找到了this。但是这段代码给出了cannot find symbol 错误。我该如何解决这个问题?
return ConfigurationBuilder.begin()
.addRule()
.when(URL.captureIn("url").and(Path.matches("/login")).and(Scheme.matches("http")))
.perform(Redirect.permanent(URL.capturedWith("url").toScheme("https")));
【问题讨论】:
标签: jsf prettyfaces