3

what is the differences between

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

and

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

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

Then, I realised both links above and I bump into ugly exceptions after applying my Spring Security sample.

My Spring MVC project is using this http://www.springframework.org/schema/beans/spring-beans.xsd and my Spring Security was using this http://www.springframework.org/schema/beans/spring-beans-3.1.xsd.

Chan Chun Weng
  • 876
  • 2
  • 16
  • 32
  • possible duplicate of [Spring configuration XML schema: with or without version?](http://stackoverflow.com/questions/20894695/spring-configuration-xml-schema-with-or-without-version) – Daniel Olszewski Jan 05 '15 at 09:54

1 Answers1

1

If you omit the version from the .xsd the XML schema that is used will be fetched from the spring jar dependencies that your project is using, and this is the right way to go.

Checkout this answer it explains it in more detail

Community
  • 1
  • 1
Master Slave
  • 27,771
  • 4
  • 57
  • 55