Jsf <;sec:授权使用Facelets模板生成无效路径错误

Jsf <;sec:授权使用Facelets模板生成无效路径错误,jsf,spring-security,facelets,Jsf,Spring Security,Facelets,我正在尝试将spring安全性与Facelets结合使用。 在我的页面中使用sec:authorize时,出现以下错误: <ui:composition template="/template.xhtml"> Invalid path :/template.xhtml 无效路径:/template.xhtml 如果我删除了我找到的,一切都会很好 我用过: <sec:authorize ifAnyGranted="ROLE_ADMIN"> 而不是 <sec

我正在尝试将spring安全性与Facelets结合使用。 在我的页面中使用sec:authorize时,出现以下错误:

<ui:composition template="/template.xhtml"> Invalid path :/template.xhtml
无效路径:/template.xhtml
如果我删除了我找到的
,一切都会很好
我用过:

<sec:authorize ifAnyGranted="ROLE_ADMIN"> 

而不是

<sec:authorize access="hasAnyRole('ROLE_ADMIN')">

<sec:authorize access="hasAnyRole('ROLE_ADMIN')">