freemarker问题,shiro标签报错

图片说明
我使用shiro标签就报错

严重: 在路径为/4pl-site-cpc的上下文中,Servlet[springmvc]的Servlet.service()引发了具有根本原因的异常Request processing failed; nested exception is freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> shiro.hasPermission  [in template "admin/article/list.ftl" at line 130, column 51]

Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (print stack trace for 1 more):
==> @shiro.hasPermission name="admin:review"  [in template "admin/article/list.ftl" at line 130, column 49]
FreeMarker template error:
The following has evaluated to null or missing:
==> shiro.hasPermission  [in template "admin/article/list.ftl" at line 130, column 51]

Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (FTL stack trace):
----------
==> @shiro.hasPermission name="admin:review"  [in template "admin/article/list.ftl" at line 130, column 49]
    #list page.content as article  [in template "admin/article/list.ftl" at line 97, column 25]
----------

Java stack trace (for programmers):
----------
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]

求大佬解答!!!

根据错误提示,检查一下shiro.hasPermission对象是否为空,值也是否为空
懒无药救混经验