我的xsd有問題嗎?出錯(cuò)了,是不是我少了什么東西
?schema_reference.4: Failed to read schema document 'http://www/springframework.org/schema/aop/spring-aop.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
<?xml version="1.0" encoding="UTF-8"?>
<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/aop
? ? ? ? http://www/springframework.org/schema/aop/spring-aop.xsd">
? ? ? ? <bean id="myAspect" class="com.spring.aop.schema.advice.MyAspect"></bean>
? ? ? ? <bean id="aspectBiz" class="com.spring.aop.schema.advice.biz.AspectBiz"></bean>
? ? ? ? <aop:config>
? ? ? ? ? ? <aop:aspect id="myAspectAOP" ref="myAspect">
? ? ? ? ? ? ? ? ?<aop:pointcut id="myPointcut"?
? ? ? ? ? ? ? ? ?expression="execution(* com.spring.aop.schema.advice.biz.*Biz.*(..))"/>
? ? ? ? ? ? ? ? ?<aop:before method="before" pointcut-ref="myPointcut"/>
? ? ? ? ? ? </aop:aspect> ??
? ? ? ? ? ??
? ? ? ? </aop:config>
</beans>
2016-08-19
如果使用的是Eclipse的話,可以安裝一個(gè)Spring Tools Suite插件,該插件可以自動(dòng)的引入需要的命名空間。。。
2016-08-14
sorry,剛發(fā)完發(fā)現(xiàn)了錯(cuò)誤所在,無語了。。。。。。這個(gè)在哪里刪除的,丟人了。。。