@PreAuthorize
在 Spring Security 3 中不起作用。
这是我的代码快照。
@PreAuthorize("hasRole('Admin') or hasRole('Student')")
public void doSomething(){}
它给了我奇怪的错误(参考附件)
@PreAuthorize
在 Spring Security 3 中不起作用。
这是我的代码快照。
@PreAuthorize("hasRole('Admin') or hasRole('Student')")
public void doSomething(){}
它给了我奇怪的错误(参考附件)