首页 试题广场 > 试题详情
单选题

【C015367】阅读下面Spring中AOP配置代码, 
<!--省略业务Bean和DAO的配置-->
<bean id="serviceLogging" class="com.pb.aop.ServiceLogging"></bean>
<bean id="userService" class="com.pb.service.UserService"></bean>
<aop:config>
<aop:pointcut id="servicePointcut"
expression="execution(public * com.pb.service.UserService
.addUser(..))" />
<aop:aspect ref="serviceLogging">
<aop:before method="beforeService" pointcut-ref="servicePointcut"/>
</aop:aspect>
</aop:config>
关于该代码下列说法中错误的是( )。

  • A.该代码的作用是在com.pb.service.UserService.addUser()方法前面织入serviceLogging对象的beforeService( )方法
  • B.如果com.pb.service.UserService.addUser()方法有多个重载方法,该配置只对参数为空的重载方法生效
  • C.<aop:before>是前置增强处理,表示在目标方法前织入增强处理
  • D.该配置的织入过程是在初始化Spring容器时完成的
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 5个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部