<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<context:component-scan base-package="aop.annotation" />
<aop:aspectj-autoproxy/ >
</beans>
在配置<aop:aspectj-autoproxy/ >这句话之前一切都没问题,我已经测试过了,但是加了这句话准备用注解方式测试的时候,报错了~我完全是按照教程写的,实在找不到什么问题,求教各位大侠......
错误信息如下:
2013-5-17 20:38:02 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@93d6bc: display name [org.springframework.context.support.ClassPathXmlApplicationContext@93d6bc]; startup date [Fri May 17 20:38:02 CST 2013]; root of context hierarchy
2013-5-17 20:38:02 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [aop-annotation-bean.xml]
2013-5-17 20:38:03 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
Processor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator]; root of factory hierarchy