[英]Error when configuring Spring security 4.2.1
我试图使用Spring 4声明性地配置Spring安全性。我创建了文件applicationContext-security.xml,如下图所示。
当我运行应用程序时,我仍然遇到类似的错误
Failed to instantiate [org.springframework.security.config.SecurityNamespaceHandler]: Constructor threw exception. Check Error Log for more details.
有人已经面对过这个问题吗? 您能帮我解决这个问题吗? 提前致谢。
也许您添加了多个版本的spring secuirty检查您的依赖关系,我遇到了这个问题,并通过删除其他依赖关系解决了这个问题。
缺少spring-aop
。
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>4.3.5.RELEASE</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.