Spring xml configuration difference between spring-beans-3.1.xsd and spring-beans.xsd

what are the differences between

http://www.springframework.org/schema/beans/spring-beans.xsd

and

http://www.springframework.org/schema/beans/spring-beans-3.1.xsd

As I am currently almost done a Spring MVC (Java server side) project and my last step is to apply the previous Spring Security Login sample to it. The Spring Security sample works flawlessly before I start my project.

Then I figured out both links above and I ran into ugly exceptions after applying my Spring Security sample.

My Spring MVC project uses this http://www.springframework.org/schema/beans/spring-beans.xsd

one and my Spring Security uses this one http://www.springframework.org/schema/beans/spring-beans-3.1.xsd

.

+3


source to share


1 answer


If you omit the version from .xsd

, the XML schema used will be extracted from the spring jar dependencies used by your project and this is the correct way.



Check out this answer , it explains it in more detail

+1


source







All Articles