因为我们可以在jsp中调用service方法如下(比如检查授权):
<sec:authorize var="hasLicense" access="@licenseService.hasCapability('Event')"/>
Run Code Online (Sandbox Code Playgroud)
使用Thymeleaf时如何调用此方法?
我知道,我们可以检查角色如下,但无法得到上述案例的例子:
<li class="link" sec:authorize="hasRole('event')">
Run Code Online (Sandbox Code Playgroud)