Skip to content

Commit

Permalink
调整bean的注入逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyangming committed Jun 6, 2017
1 parent 662978e commit 78fefe6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ public Object postProcessBeforeInitialization(Object bean, String beanName) thro

this.jtaTransactionManager = (JtaTransactionManager) bean;

this.configureUserTransactionIfNecessary();

if (this.jtaTransactionManager.getTransactionManager() != null
&& this.jtaTransactionManager.getUserTransaction() != null) {
return bean;
} else if (this.transactionManager == null) {
this.beanList.add(bean);
this.configureUserTransactionIfNecessary();
} else {
this.configureTransactionManager();
this.jtaTransactionManager.setTransactionManager(this.transactionManager);
}

Expand Down

0 comments on commit 78fefe6

Please sign in to comment.