博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Spring配置声明
阅读量:4634 次
发布时间:2019-06-09

本文共 847 字,大约阅读时间需要 2 分钟。

<...
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   
    xmlns:p="http://www.springframework.org/schema/p"  
    xmlns:aop="http://www.springframework.org/schema/aop"   
    xmlns:context="http://www.springframework.org/schema/context"  
    xmlns:jee="http://www.springframework.org/schema/jee"  
    xmlns:tx="http://www.springframework.org/schema/tx"  
    xsi:schemaLocation="    
        http://www.springframework.org/schema/aop
... >
 
说明:
DTD ---- Document Type Definition,中文意思为“文档类型定义”。DTD有两个功能:它能帮助你编写合法的代码,也能让浏览器正确地显示代码。
beans ---- xml文件的根节点。
xmlns ---- 
由于xml允许定义自己的标记,但你定义的标记和其他人定义的标记有可能相同,但表示不同的含义。当文档交换或者共享的时候就容易产生错误。为避免这种错误产生,xml采用名字空间声明,允许你通过一个网址来识别你的标记。
xmlns:xsi ---- xml schema instance,是指xml文件遵守xml规范。
xsi:schemaLocation ---- 
是指具体用到的schema资源(不要看相关中文资料,看了就不明白了,schema就是schema~你把他翻译成对文档的限制就行了。你可能会说,dtd才是,实际上xsd和dtd是一样的)

转载于:https://www.cnblogs.com/xhyouyou/p/4667530.html

你可能感兴趣的文章
为选择屏幕的字段设置F4帮助
查看>>
Ace(二)Demo示例
查看>>
N皇后摆放问题
查看>>
[搜索]UVa 129 困难的串
查看>>
【第八篇】SAP ABAP7.5x新语法之F4增强【续】
查看>>
test1
查看>>
实测 Mysql UUID 性能(转)
查看>>
变动信息
查看>>
angularjs post 跨域
查看>>
Flask——部署
查看>>
php 操作分表代码
查看>>
java2
查看>>
复制图片的一部分
查看>>
调试uIP出现死机问题
查看>>
AttributeError: 'dict' object has no attribute 'status_code'
查看>>
poj2135最小费用最大流经典模板题
查看>>
hdu 4355 Party All the Time (2012 Multi-University Training Contest 6 ) 三分搜索
查看>>
POJ 2528 Mayor's posters(线段树)
查看>>
【转】[退役]纪念我的ACM——headacher@XDU
查看>>
利用STl实现队列
查看>>