单项选择题

< context:component-scan base-package="com.mhys.demo">< /context:component-scan>此配置的作用是()

A.开启事务代理
B.开启注解扫描
C.配置前置通知
D.配置后置通知