spring3.x schemaLocation

来源:互联网 发布:java checkboxgroup 编辑:程序博客网 时间:2024/05/11 15:12

spring 默认会从网络下载xsd。


更改方式(1):先下载需要的xsd文件,无网络的可以从spring-x.jar中找。将文件放于classpath下,及src下。

配置文件中的声明更改如下:

http://www.springframework.org/schema/beans
classpath:spring-beans-3.1.xsd


方式(2):找到spring-x.jar中META-INF下spring.schemas,里边记录着xsd的位置,更换到本地路径即可。

0 0