综述:项目需求,补充学习了Spring AOP,练习了小项目,出现的问题记录备忘一下。
备忘列表
- 导入的Jar包列表以及applicationContext.xml示例
- 约束文件schema添加
- @Before
- JoinPoint的jar包
- 各种通知总结
- 多个通知的优先级
- 切入点表达式
导入的Jar包列表以及applicationContext.xml示例
applicationContext.xml示例
<?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/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
<context:component-scan base-