It is recommended to use the "versionless" XSDs, because they're mapped to the current version of the framework you're using in your application.
Applications and tools should never try to fetch those XSDs from the web, since those schemas are included in the JARs. If they do, it usually means your app is trying to use a XSD that is more recent than the framework version you're using, or that your IDE/tool is not properly configured.
Anyway the Spring team should drop the versioned schemas for Spring 5.0, see SPR-13499.
another post:
Consider using versionless xsd's. This will make the tooling pick up the version of the xsd matching the version of the spring jar you are using(look at the spring.schemas file in your jar). In case of any incompatibility when you upgrade your spring libraries(which should really be rare) you should be able to catch it during build.
博客建议在Spring配置中使用无版本的XSD,因其会映射到应用所用框架的当前版本。应用和工具不应从网络获取XSD,因为这些模式已包含在JAR中。Spring团队应在Spring 5.0去掉有版本的模式,使用无版本XSD便于在升级库时发现不兼容问题。
1633

被折叠的 条评论
为什么被折叠?



