Seems you can not specify the version numbers in the spring config files:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
So is Spring going to the latest version in the classpath? Where is this in spring docs if listed at all?
There is a spring.schemas file in spring-beans.jar. This file contains pointers to the XSD files. Here is the value in the spring.schemas file.
http\://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd
Therefore, the file is in the package org.springframework.beans.factory.xml of the jar.
You absolutely can specify the version: http://www.springframework.org/schema/beans/
Click the link, it lists all the available versioned XSDs.
However, the unversioned XSD always points to the latest version.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With