@Configuration public class TransactionalConfig extends Object
Constructor and Description |
---|
TransactionalConfig() |
Modifier and Type | Method and Description |
---|---|
org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator |
getBeanNameAutoProxyCreator() |
org.springframework.transaction.interceptor.TransactionInterceptor |
transactionInterceptor(org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
aop
|
@Bean(name="transactionInterceptor") public org.springframework.transaction.interceptor.TransactionInterceptor transactionInterceptor(org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
platformTransactionManager
- 自动注入 无需手动@Bean public org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator getBeanNameAutoProxyCreator()
Copyright © 2019. All rights reserved.