spring.net 事务和 安全 配置
2008-10-17 17:15
190 查看
<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">
<!-- The rest of the config file is common no matter how many objects you add -->
<!-- that you would like to have declarative tx management applied to -->
<!--<object id="autoProxyCreator"
type="Spring.Aop.Framework.AutoProxy.DefaultAdvisorAutoProxyCreator, Spring.Aop">
</object>-->
<object id="transactionAdvisor"
type="Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor, Spring.Data">
<property name="TransactionInterceptor" ref="transactionInterceptor"/>
</object>
<object id="aroundAdvisor"
type="Spring.Aop.Support.NameMatchMethodPointcutAdvisor, Spring.Aop">
<property name="Advice">
<object type="Deco.Logic.UserPower, Deco.Logic" />
</property>
<property name="MappedNames">
<list>
<value>*Save*</value>
<value>*Delete*</value>
<value>*Get*</value>
<value>*Update*</value>
<value>*Exist*</value>
</list>
</property>
</object>
<!-- Transaction Interceptor -->
<object id="transactionInterceptor"
type="Spring.Transaction.Interceptor.TransactionInterceptor, Spring.Data">
<property name="TransactionManager" ref="HibernateTransactionManager"/>
<!-- note do not have converter from string to this property type registered -->
<property name="TransactionAttributeSource" ref="attributeTransactionAttributeSource"/>
</object>
<object id="attributeTransactionAttributeSource"
type="Spring.Transaction.Interceptor.AttributesTransactionAttributeSource, Spring.Data">
</object>
<object type="Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator, Spring.Aop">
<property name="ObjectNames">
<list>
<value>*Service</value>
</list>
</property>
<property name="InterceptorNames">
<list>
<value>transactionAdvisor</value>
<value>aroundAdvisor</value>
</list>
</property>
</object>
</objects>
<objects xmlns="http://www.springframework.net">
<!-- The rest of the config file is common no matter how many objects you add -->
<!-- that you would like to have declarative tx management applied to -->
<!--<object id="autoProxyCreator"
type="Spring.Aop.Framework.AutoProxy.DefaultAdvisorAutoProxyCreator, Spring.Aop">
</object>-->
<object id="transactionAdvisor"
type="Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor, Spring.Data">
<property name="TransactionInterceptor" ref="transactionInterceptor"/>
</object>
<object id="aroundAdvisor"
type="Spring.Aop.Support.NameMatchMethodPointcutAdvisor, Spring.Aop">
<property name="Advice">
<object type="Deco.Logic.UserPower, Deco.Logic" />
</property>
<property name="MappedNames">
<list>
<value>*Save*</value>
<value>*Delete*</value>
<value>*Get*</value>
<value>*Update*</value>
<value>*Exist*</value>
</list>
</property>
</object>
<!-- Transaction Interceptor -->
<object id="transactionInterceptor"
type="Spring.Transaction.Interceptor.TransactionInterceptor, Spring.Data">
<property name="TransactionManager" ref="HibernateTransactionManager"/>
<!-- note do not have converter from string to this property type registered -->
<property name="TransactionAttributeSource" ref="attributeTransactionAttributeSource"/>
</object>
<object id="attributeTransactionAttributeSource"
type="Spring.Transaction.Interceptor.AttributesTransactionAttributeSource, Spring.Data">
</object>
<object type="Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator, Spring.Aop">
<property name="ObjectNames">
<list>
<value>*Service</value>
</list>
</property>
<property name="InterceptorNames">
<list>
<value>transactionAdvisor</value>
<value>aroundAdvisor</value>
</list>
</property>
</object>
</objects>
相关文章推荐
- spring.net tx:advice 和 aop:config 配置事务 匹配名字的方法管理事务
- spring事务配置
- Spring3声明式事务处理事务无法回滚rollback分析(annotation与xml配置混用)
- spring框架学习(七)spring管理事务方式之xml配置
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- Spring事务配置的五种方式
- Spring事务配置的五种方式
- Spring 数据加载和事务管理器配置注释详解
- Spring配置多数据源在配置事务后无效完美解决方案
- Spring配置多数据源在配置事务后无效完美解决方案
- spring配置事务管理及事物传播行为介绍(@Transactional(propagation = Propagation.SUPPORTS))
- spring数据源配置及事务管理--hibernate4
- spring事物配置,声明式事务管理和基于@Transactional注解的使用
- Spring Boot 中使用 @Transactional 注解配置事务管理
- spring配置事务的五种方式
- Spring事务配置的五种方式和spring里面事务的传播属性和事务隔离级别、不可重复读与幻读的区别
- Spring事务配置的五种方式和spring里面事务的传播属性和事务隔离级别
- Spring事务配置的五种方式
- 关于spring DAO和事务的配置示例
- Spring 声明式事务的配置方式(四)