阅读背景:

Spring基于注解实现AOP

来源:互联网 
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="https://www.springframework.org/schema/beans"
       xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="https://www.springframework.org/schema/context"
       xmlns:aop="https://www.springframework.org/schema/aop"
       xsi:schemaLocation="https://www.springframework.org/schema/beans
           https://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           https://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context-2.5.xsd
           https://www.springframework.org/schema/aop https://www.springframework.org/schema/aop/spring-aop-2.5.xsd">

	<!-- 开启自动扫描,来支持Bean通过注解给spring管理 -->
	<context:component-scan base-package="cn.itcast"></context:component-scan>
	<!-- 开启自动代理实现AOP -->
	<aop:aspectj-autoproxy />
</beans>

<?xml version="1.0" encoding="UTF-8"?>
<beans xm



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: