<… 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是一样的)