切面类的编写
```
@Component
public class AnotherAspect {
public void before()
{
System.out.println("another aspect before");
}
public void after()
{
System.out.println("another aspect after");
}
}
```
xml配置
```
<!-- 使用xml方式配置aop -->
<aop:config>
<aop:aspect ref="anotherAspect">
<aop:pointcut expression="execution(* com.neuedu.aop.business.*.*(..))" id="pc"/>
<aop:before method="before" pointcut-ref="pc"/>
<aop:after method="after" pointcut-ref="pc"/>
</aop:aspect>
</aop:config>
```