Spring AOP: “no declaration can be found for element 'aop:config' ”

后端 未结 1 1934
故里飘歌
故里飘歌 2021-02-01 10:13

I\'ve seen that a few instances of this problem have been raised already. However, I am confident that I satisfy the criteria that has been outlined in those solutions. i.e. I\'

1条回答
  •  余生分开走
    2021-02-01 10:36

    The order of xsi:schemaLocation items is wrong, each namespace URI should be followed by its XSD location:

    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"
    

    0 讨论(0)
提交回复
热议问题