提交 52f46c7f 编写于 作者: J Juergen Hoeller

Aspect actually applies in PersistenceExceptionTranslationPostProcessorTests

Issue: SPR-14457
(cherry picked from commit 04e9c2bf)
上级 f0a826ec
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -22,6 +22,7 @@ import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.junit.Test;
import org.springframework.aop.Advisor;
import org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator;
import org.springframework.aop.framework.Advised;
......@@ -138,7 +139,7 @@ public class PersistenceExceptionTranslationPostProcessorTests {
@Aspect
public static class LogAllAspect {
@Before("execution(void *.additionalMethod())")
@Before("execution(void *.additionalMethod(*))")
public void log(JoinPoint jp) {
System.out.println("Before " + jp.getSignature().getName());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册