Ошибка в шаблоне фримаркер
Ошибка
Whitelabel Error Page This application has no explicit mapping for
/error, so you are seeing this as a fallback.
Thu Jan 14 01:16:38 PST 2021 There was an unexpected error
(type=Internal Server Error, status=500). Failed to parse
[index.ftl]; nested exception is freemarker.core.ParseException:
Syntax error in template "index.ftl" in line 2, column 32:
Encountered "[", but was expecting one of: "false" "true" <LESS_THAN>
<LESS_THAN_EQUALS> <ESCAPED_GT> <ESCAPED_GTE> "*" "**" "in" "as"
"using" <ID> org.springframework.context.ApplicationContextException:
Failed to parse [index.ftl]; nested exception is
freemarker.core.ParseException: Syntax error in template "index.ftl"
in line 2, column 32: Encountered "[", but was expecting one of:
"false"
"true"
<LESS_THAN>
<LESS_THAN_EQUALS>
<ESCAPED_GT>
<ESCAPED_GTE>
"*"
"**"
"in"
"as"
"using"
Код в темплейте фримаркера
<#import "parts/comon.ftl" as c>
<#assign security = JspTaglibs.['http://www.springframework.org/security/tags']/
<@security.authorize access="isAuthenticated">
<h1> 123</h1>
</@security.authorize>
<@c.page>
</@c.page>