black

MVC考试

登录

单项选择题

@Component --1@Aspect --2public class TransactionAdvice {@Before("TransactionAdvice.pc()")--3public void beforeAdvice(){--I264System.out.println("执行前置通知方法!");}}
以上代码在TransactionAdvice类中,使用@Before定义前置通知是否正确,如果有错在哪一行?()

A.完全正确
B.第2行错误
C.第3行错误
D.第3,4行错误

相关考题

单项选择题 @AfterThrowing注解的作用是()

单项选择题 @AfterReturning注解的作用是()

单项选择题 @After注解的作用是()

All Rights Reserved 版权所有©在线考试题库网(zxkao.com)

备案号:湘ICP备14005140号-7

经营许可证号:湘B2-20140064