开发者社区 问答 正文

spring配置文件中引入context命名空间却不能使用context标签

myeclipse中spring配置文件的 命名空间 为什么导入了相对应的命名空间但是 相对应的标题却不能使用 求大神

展开
收起
蛮大人123 2016-05-31 13:13:25 8031 分享 版权
2 条回答
写回答
取消 提交回答
  • 试试这个:
    2019-07-17 19:21:49
    赞同 展开评论
  • 我说我不帅他们就打我,还说我虚伪
    <beans xmlns="http://www.springframework.org/schema/beans"     
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"           
        xmlns:context="http://www.springframework.org/schema/context"   
        xmlns:aop="http://www.springframework.org/schema/aop"       
        xmlns:tx="http://www.springframework.org/schema/tx"         
        xmlns:util="http://www.springframework.org/schema/util"         
        xmlns:p="http://www.springframework.org/schema/p"               
        xsi:schemaLocation="http://www.springframework.org/schema/beans                             
                            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd        
                            http://www.springframework.org/schema/context                           
                            http://www.springframework.org/schema/context/spring-context-3.0.xsd    
                            http://www.springframework.org/schema/aop                               
                            http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                            http://www.springframework.org/schema/tx                            
                            http://www.springframework.org/schema/tx/spring-tx-3.0.xsd                      
                            http://www.springframework.org/schema/util                          
                            http://www.springframework.org/schema/util/spring-util-3.0.xsd">   
    2019-07-17 19:21:49
    赞同 展开评论