Spring更新版本

Spring更新版本,spring,spring-mvc,spring-security,Spring,Spring Mvc,Spring Security,我正在尝试将spring从3.2版本更新到4.1.6版本,我下载了JAR并用旧版本替换它们 问题是,我必须更改application-context.xml中的schemaLocation版本吗?如果没有异常,并且应用程序正常工作,则不会。 如果您有没有版本的架构: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan

我正在尝试将spring从3.2版本更新到4.1.6版本,我下载了JAR并用旧版本替换它们


问题是,我必须更改application-context.xml中的schemaLocation版本吗?

如果没有异常,并且应用程序正常工作,则不会。 如果您有没有版本的架构:

<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">

而不是

<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-3.0.xsd">

framewrok将获得正确的模式