@ConditionalOnProperty(name="aoplog.enabled",
havingValue="true",
matchIfMissing=false)
@Component
@Configuration
public class MethodAspectConfig
extends Object
implements org.springframework.aop.MethodBeforeAdvice, org.springframework.aop.AfterReturningAdvice, org.aopalliance.intercept.MethodInterceptor
| 构造器和说明 |
|---|
MethodAspectConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterReturning(Object returnValue,
Method method,
Object[] args,
Object target) |
void |
before(Method method,
Object[] args,
Object target) |
org.springframework.aop.support.DefaultPointcutAdvisor |
createDefaultPointcutAdvisor() |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable
afterReturning 在接口中 org.springframework.aop.AfterReturningAdviceThrowablepublic void before(Method method, Object[] args, Object target) throws Throwable
before 在接口中 org.springframework.aop.MethodBeforeAdviceThrowable@Bean(value="defaultPointcutAdvisor") public org.springframework.aop.support.DefaultPointcutAdvisor createDefaultPointcutAdvisor()
Copyright © 2024. All rights reserved.