【发布时间】:2013-02-27 23:18:27
【问题描述】:
我在 JSP 中显示属性文件中的某些属性,如下所示:
<spring:eval expression="@propertyConfigurer.getProperty('myproperty')"/>
现在,我想在 <sec:authorize access="hasRole()/> 中使用相同的属性
<sec:authorize access="hasRole('<spring:eval expression="@propertyConfigurer.getProperty('myproperty')"/>')">
这是行不通的。
【问题讨论】:
-
你试过这个吗:
?
标签: java spring spring-mvc spring-security