使用spring-4.0和spring security-3.2.0

时间:2014-06-05 08:46:43

标签: java spring hibernate spring-mvc spring-security

我正在尝试使用最新的spring security v3.2.0和最新的spring v4.0创建一个项目。但它抛出错误告诉版本不匹配:

211 [localhost-startStop-1] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-security.xml]
365 [localhost-startStop-1] INFO org.springframework.security.core.SpringSecurityCoreVersion - You are running with Spring Security Core 3.1.0.RELEASE
365 [localhost-startStop-1] ERROR org.springframework.security.core.SpringSecurityCoreVersion - *** Spring Major version '3' expected, but you are running with version: 4.0.5.RELEASE. Please check your classpath for unwanted jar files.
365 [localhost-startStop-1] INFO org.springframework.security.config.SecurityNamespaceHandler - Spring Security 'config' module version is 3.1.0.RELEASE

我知道版本不匹配,但是如果有人想使用spring 4.0那么他需要使用什么版本的spring security? 根据这篇文章,spring secirity 3.2针对spring 4.0进行了测试并且工作正常,但在我的情况下它的抛出错误: Can I use spring security with Spring 4.0?

enter image description here

0 个答案:

没有答案