首页 > 编程语言 > 详细

spring xmlns 记录

时间:2016-03-20 00:28:53      阅读:222      评论:0      收藏:0      [点我收藏+]
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>

spring xmlns 记录

原文:http://www.cnblogs.com/caiyao/p/5296589.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!