鍍金池/ 問答/網(wǎng)絡(luò)安全/ aop命名空間問題

aop命名空間問題

<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.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/aop
       http://http://www.springframework.org/schema/aop/spring-aop.xsd">
<aop:aspectj-autoproxy proxy-target-class="true"/>
<context:component-scan base-package="com" />

</beans>

Caused by: org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 55; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但無法找到元素 'aop:aspectj-autoproxy' 的聲明。

明明已經(jīng)加了全部內(nèi)容但是還是報(bào)錯(cuò)求大佬指點(diǎn)

回答
編輯回答
晚風(fēng)眠

我后來寫了兩個(gè)代碼一樣的東西,發(fā)現(xiàn)一個(gè)可以用一個(gè)不能用,很可能是字符集的問題

2018年5月5日 12:52