Freemarker single = 在 if 语句中
Freemarker single = in if statement
Keycloak 使用 Freemarker 模板。 There you find if 语句中的单个 =
。
Freemarker's documentation 告诉我在 if 语句中使用 ==
。
Keyclaok 的模板似乎有效。谁能赐教一下?
表达式中允许使用,但已弃用。来自表达式文档的“比较”部分:
To test two values for equality you use ==
(or =
as a deprecated alternative)
参见:https://freemarker.apache.org/docs/dgui_template_exp.html#dgui_template_exp_comparison
Keycloak 使用 Freemarker 模板。 There you find if 语句中的单个 =
。
Freemarker's documentation 告诉我在 if 语句中使用 ==
。
Keyclaok 的模板似乎有效。谁能赐教一下?
表达式中允许使用,但已弃用。来自表达式文档的“比较”部分:
To test two values for equality you use
==
(or=
as a deprecated alternative)
参见:https://freemarker.apache.org/docs/dgui_template_exp.html#dgui_template_exp_comparison