我想知道是否有人尝试实现 spring acl 功能,但不是使用数据库,而是使用简单的属性文件。例如 :
myobject.input.field1=ACL_READ
myobject.input.field2=ACL_READ,ACL_WRITE
在jsp中:
<sec:accesscontrollist hasPermission="ACL_READ" domainObject="myobject.input.field1">
This will be shown if the user has either of the permissions
represented by the values "1" or "2" on the given object.
<input type="text" name="field1" />
</sec:accesscontrollist>
cf http://static.springsource.org/spring-security/site/docs/3.1.x/reference/taglibs.html#d0e6991