@Aspect public class LoggingAspect { @Autowired private LoggingAspectProcessor processor; @Autowired ControlManagerService service; @Around("@annotation(com.jp.tic.system.core.annotation.Log)") // @Around("execution( * cn.tisson.pms.dao..*(..))") public Object log(ProceedingJoinPoint pjp) throws Throwable { return processor.process(pjp); } } 求解,为何在这里面引用的processor和service为空,在其他,比如controller里面,又不为空呢? |
|
60分 |
楼主看看这个,Spring的自动注入有区分的,不是每个class都能行的
http://blog.csdn.net/wangpeng047/article/details/8868753 |