有两种情况会导致xml头文件报错
①xsi:schemaLocation 中报错的信息没加版本号,如下图 http://www.springframework.org/schema/spring-context.xsd
就没有加入版本号
修改成 http://www.springframework.org/schema/spring-context.3.0.xsd 就不报错了
②xsi:schemaLocation 中报错的信息添加了版本号,此时 把①的步骤反过来,去掉对应的版本号即可
有两种情况会导致xml头文件报错
①xsi:schemaLocation 中报错的信息没加版本号,如下图 http://www.springframework.org/schema/spring-context.xsd
就没有加入版本号
修改成 http://www.springframework.org/schema/spring-context.3.0.xsd 就不报错了
②xsi:schemaLocation 中报错的信息添加了版本号,此时 把①的步骤反过来,去掉对应的版本号即可