[英]Error when configuring Spring security 4.2.1
I'm trying to configure Spring security declaratively using the Spring 4. I created the file applicationContext-security.xml as the image below show 我试图使用Spring 4声明性地配置Spring安全性。我创建了文件applicationContext-security.xml,如下图所示。
applicationContext-security applicationContext-security
When I'm running the application I'm still having the same error like 当我运行应用程序时,我仍然遇到类似的错误
Failed to instantiate [org.springframework.security.config.SecurityNamespaceHandler]: Constructor threw exception. Check Error Log for more details.
Did someone already faced that issue ? 有人已经面对过这个问题吗? Could you please help me to fix this issue ?
您能帮我解决这个问题吗? Thanks in advance.
提前致谢。
也许您添加了多个版本的spring secuirty检查您的依赖关系,我遇到了这个问题,并通过删除其他依赖关系解决了这个问题。
Missing the spring-aop
jar. 缺少
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.