Spring中重要的标签
2019-02-24 17:43 Spiderman25 阅读(103) 评论(0) 收藏 举报1、<tx:annotation-driven/>开启注解事务,如果事务处理器的名称是 transactionManager, 就可以在<tx:annotation-driven> 元素中省略 transaction-manager 属性. 这个元素会自动检测该名称的事务处理器.
2、要在 Spring IOC 容器中启用 AspectJ 注解支持, 只要在 Bean 配置文件中定义一个空的 XML 元素 <aop:aspectj-autoproxy>
3、<context:component-scan base-package=""/>
浙公网安备 33010602011771号