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的位置,更换到本地路径即可。
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的位置,更换到本地路径即可。