Spring Security 3.0提供了一些新的注释,以便在方法级上全面支持数据权限访问控制。有四个属性注释支持表达式允许pre和post-invocation授权检查,支持过滤收集参数或返回值。他们是@PreAuthorize, @PreFilter, @PostAuthorize and @PostFilter。启用这些注解必须在spring boot项目中添加@EnableGlobalMethodSecurity(prePostEnabled = true) 注解。Spring Security 3.0提供了一些新的注释,以便在方法级上全面支持数据权