解决方案 »

  1.   

    应该spring配置文件的头文件有问题,用aop和不用aop的schema是不一样的,你可以参考文档:
    Part VII.Appendices
        Appendix C. XML Schema-based
        C.2 XML Schema-based configuration
        The aop schema
         
      

  2.   

    这是我配置文件的头
    <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"
    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">
    这个在别的应用中是可以用的不知为啥现在就不行了