1. spring的bean.xml文档的语义约束
下面六个http地址,一个是publicid 一个是systemid 要对应起来。。。解决两者不对应的问题
<?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://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">
</beans>
2. spring的运行时报错:
<span style="font-size:18px;"> </span><span style="font-size:14px;">通配符的匹配很全面, 但无法找到元素 'aop:aspectj-autoproxy' 的声明问题</span>
主要是因为缺少spring的aop其中一个jar包。汇总一下aop所用jar包:
aopalliance.jar
aspectjrt.jar
aspectjweaver.jar
spring-aop-3.0.5.RELEASE.jar