I'm trying to configure Spring security declaratively using the Spring 4. I created the file applicationContext-security.xml as the image below show
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.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>4.3.5.RELEASE</version>
</dependency>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.