spring xmlns 记录

spring xmlns 命名空间可从: http://www.springframework.org/schema/  根据需求选择 
如:
        1、选择 : aop 
        2、复制浏览器地址 , 粘入 配置文件 xmlns:aop=""中,如果是contest 则 xmlns:contest=""

                      <beans xmlns="http://www.springframework.org/schema/beans"
                           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                   xmlns:aop="http://www.springframework.org/schema/aop"
                                   xsi:schemaLocation="
                                    http://www.springframework.org/schema/beans
                                            http://www.springframework.org/schema/beans/spring-beans-3.1.xsd" >标签属性中

        3、选择对应的版本 ,进入后,再次复制浏览器地址,粘入配置文件紧跟在 2 项标签xsi:schemaLocation=“” 标签属性中
                      xsi:schemaLocation=“http://www.springframework.org/schema/aop/spring-aop-3.1.xsd”  
 
注意:严禁URL后面带 "/"可能会出错
 

推荐:

<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:mvc="http://www.springframework.org/schema/mvc" 
    xmlns:task="http://www.springframework.org/schema/task"
    xsi:schemaLocation="
</beans>
原文地址:https://www.cnblogs.com/caiyao/p/5296589.html