Spring Security 保护方法时遇到问题了!!!!!
我在网上看到只要在applicationContext.xml中配置<global-method-security secured-annotations="enabled" jsr250-annotations="enabled"/>
然后在相应的类或(或一个类或一个接口)添加注解,例如public interface BankService {
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
public Account readAccount(Long id);
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
public Account[] findAccounts();
@Secured("ROLE_TELLER")
public Account post(Account account, double amount);
}
就会限制对这个方法的访问。
可是我刚把那个global-method-security标签设置到applicationContext.xml中重启tomcat就报异常java.lang.ClassNotFoundException: org.aspectj.lang.Signature
请问这是为什么?