我正在用(智能)gwt、hibernate (实际上是gilead或Spring Security )构建一个应用程序。
顺便说一句,我对所有这些都很陌生。
到目前为止,一切都很好,但我最近添加了Spring安全功能,以实现身份验证系统。似乎有多种方法使这个工作,我看了几个教程。
我喜欢这里这个简单的想法:http://blog.maxmatveev.com/2011/06/gwt-and-spring-security-integration-as.html?showComment=1328698687249#c4823182825437196300
我也尝试过这个(很多虚拟类等等,但是哦,好吧):http://seewah.blogspot.com/2009/02/gwt-and-spring-security.html
在这两种情况下,我都有相同的问题,我在applicationContext.xml中得到了这个错误:
Error occured processing XML 'org/springframework/security/access/intercept/aopalliance/MethodSecurityInterceptor'在第一个链接中,它发生在行中:
<security:global-method-security secured-annotations="enabled" mode="aspectj"/>在第二个链接中,它发生在线上:
<security:global-method-security secured-annotations="enabled" jsr250-annotations="disabled" />我搜索了这个问题,但没有找到答案..
PS1:使用Eclipse3.6的,我已经为Spring框架和aspectJ安装了插件。
PS2: --我没有在这里编写所有的代码,而是喜欢使用我使用的教程(可能代码太多了)。
也许有人能帮我。提前谢谢你。
发布于 2012-02-13 11:19:55
这可能是Spring/Spring安全性版本的问题。
确保更新到最近的版本(处理元素的属性mode="aspectj" security:global-method-security),例如Spring-Security3.1。
https://stackoverflow.com/questions/9241950
复制相似问题