Questions about the version number of the XSD file for spring

Source: Internet
Author: User

Today, when we look at some examples of Spring's official website, I find that many of his XSD references are not with the version number:


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/81/F3/wKioL1dGXu3xah2HAACoEtiLuzY123.png "title=" Qq20160526102217.png "alt=" Wkiol1dgxu3xah2haacoetiluzy123.png "/>

To figure out what's going on, you need to know how spring is loading an XSD file to validate the XML file , and remember that there was a situation where the net could not be checked before, and in order to prevent this, spring defaults to loading the XSD file from the local



In the spring release package, I saw it,

Spring-context-4.2.6.release.jar\meta-inf

Spring.handlers file

Http\://www.springframework.org/schema/context=org.springframework.context.config.contextnamespacehandlerhttp\ ://www.springframework.org/schema/jee=org.springframework.ejb.config.jeenamespacehandlerhttp\:// www.springframework.org/schema/lang=org.springframework.scripting.config.langnamespacehandlerhttp\:// www.springframework.org/schema/task=org.springframework.scheduling.config.tasknamespacehandlerhttp\:// Www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler


Spring.schemas file

http\://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/ spring-context-2.5.xsdhttp\://www.springframework.org/schema/context/spring-context-3.0.xsd=org/ springframework/context/config/spring-context-3.0.xsdhttp\://www.springframework.org/schema/context/ spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsdhttp\:// www.springframework.org/schema/context/spring-context-3.2.xsd=org/springframework/context/config/ spring-context-3.2.xsdhttp\://www.springframework.org/schema/context/spring-context-4.0.xsd=org/ springframework/context/config/spring-context-4.0.xsdhttp\://www.springframework.org/schema/context/ spring-context-4.1.xsd=org/springframework/context/config/spring-context-4.1.xsdhttp\:// www.springframework.org/schema/context/spring-context-4.2.xsd=org/springframework/context/config/ spring-context-4.2.xsdhttp\://www.springframework.org/schema/context/spring-context.xsd=org/springframework/ Context/config/spring-context-4.2.xsdhttp\://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/ Spring-jee-2.0.xsdhttp\://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config /spring-jee-2.5.xsdhttp\://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/ Config/spring-jee-3.0.xsdhttp\://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb /config/spring-jee-3.1.xsdhttp\://www.springframework.org/schema/jee/spring-jee-3.2.xsd=org/springframework/ Ejb/config/spring-jee-3.2.xsdhttp\://www.springframework.org/schema/jee/spring-jee-4.0.xsd=org/springframework /ejb/config/spring-jee-4.0.xsdhttp\://www.springframework.org/schema/jee/spring-jee-4.1.xsd=org/ springframework/ejb/config/spring-jee-4.1.xsdhttp\://www.springframework.org/schema/jee/spring-jee-4.2.xsd=org /springframework/ejb/config/spring-jee-4.2.xsdhttp\://www.springframework.org/schema/jee/spring-jee.xsd=org/ springframework/ejb/config/spring-jee-4.2.xsdhttp\://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/ spring-lang-2.0.xsdhttp\://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/ scripting/config/spring-lang-2.5.xsdhttp\://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/ springframework/scripting/config/spring-lang-3.0.xsdhttp\://www.springframework.org/schema/lang/ spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsdhttp\://www.springframework.org/ schema/lang/spring-lang-3.2.xsd=org/springframework/scripting/config/spring-lang-3.2.xsdhttp\:// www.springframework.org/schema/lang/spring-lang-4.0.xsd=org/springframework/scripting/config/ spring-lang-4.0.xsdhttp\://www.springframework.org/schema/lang/spring-lang-4.1.xsd=org/springframework/ scripting/config/spring-lang-4.1.xsdhttp\://www.springframework.org/schema/lang/spring-lang-4.2.xsd=org/ springframework/scripting/config/spring-lang-4.2.xsdhttp\://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-4.2.xsdhttp\:// www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/ spring-task-3.0.xsdhttp\://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/ scheduling/config/spring-task-3.1.xsdhttp\://www.springframework.org/schema/task/spring-task-3.2.xsd=org/ springframework/scheduling/config/spring-task-3.2.xsdhttp\://www.springframework.org/schema/task/ spring-task-4.0.xsd=org/springframework/scheduling/config/spring-task-4.0.xsdhttp\://www.springframework.org/ schema/task/spring-task-4.1.xsd=org/springframework/scheduling/config/spring-task-4.1.xsdhttp\:// www.springframework.org/schema/task/spring-task-4.2.xsd=org/springframework/scheduling/config/ spring-task-4.2.xsdhttp\://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/ Config/spring-task-4.2.xsdhttp\://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/spriNgframework/cache/config/spring-cache-3.1.xsdhttp\://www.springframework.org/schema/cache/spring-cache-3.2.xsd =org/springframework/cache/config/spring-cache-3.2.xsdhttp\://www.springframework.org/schema/cache/ spring-cache-4.0.xsd=org/springframework/cache/config/spring-cache-4.0.xsdhttp\://www.springframework.org/ schema/cache/spring-cache-4.1.xsd=org/springframework/cache/config/spring-cache-4.1.xsdhttp\:// www.springframework.org/schema/cache/spring-cache-4.2.xsd=org/springframework/cache/config/ spring-cache-4.2.xsdhttp\://www.springframework.org/schema/cache/spring-cache.xsd=org/springframework/cache/ Config/spring-cache-4.2.xsd


As you can see, with no version number configured, the default is to use the latest

http\://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/ Spring-context-4.2.xsd



Questions about the version number of the XSD file for spring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.