Heather1
2016-08-14 14:43
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>
如果使用的是Eclipse的话,可以安装一个Spring Tools Suite插件,该插件可以自动的引入需要的命名空间。。。
sorry,刚发完发现了错误所在,无语了。。。。。。这个在哪里删除的,丢人了。。。
Spring入门篇
268787 学习 · 963 问题
相似问题