标签: java spring java-ee annotations spring-security
可能重复: What's the difference between @Secured and @PreAuthorize in spring secu 3 ?
我想知道哪些注释更适合用于Spring安全性 - @Secured或@PreAuthorize。似乎@Secured是Java ee5注释,但我看到了@PreAuthorize而不是@Secured的更多示例。
@Secured
@PreAuthorize