关于Spring中在applicationContext.xml中AOP(aop:aspectj-autoproxy)的配置问题记录:
1.问题描述:今日学习spring中AOP功能,在此做参考了下面链接的博主的一个test:
https://blog.csdn.net/guoyp2126/article/details/116090411
1.1在com.example.service
package com.example.service;
public interface CustomerService {
void play();
}
1.2com.example.service.impl
package com.example.service.impl;
import com.example.service.CustomerService;
import org.springframework.stereotype.Component;
@Component(value = "customer")
public class CustomerServiceImpl implements CustomerService {
@Override
public void play() {
System