web

来源:互联网 发布:mysql loop循环 编辑:程序博客网 时间:2024/06/01 09:42

7、XML Schema

<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
 xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

</beans>

  • 名称空间,例如:xsi前缀名,代表名称空间"http://www.w3.org/2001/XMLSchema-instance"。每个名称空间都用唯一URI(Uniform Resource Identifier)表示
  • 名称空间声明的基本形式:xmlns:前缀名称="URI"
  • 默认名称空间:xmlns="URI"
  • schemaLocation:指定名称空间所对应的XML Schema文档的存储位置
  • 在使用公认的标准名称空间,不需要使用schemaLocation指定位置
0 0
原创粉丝点击