You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/05/04 10:35:25 UTC

[GitHub] [shardingsphere] romantictravel01 commented on issue #5411: @Transaction invalid

romantictravel01 commented on issue #5411:
URL: https://github.com/apache/shardingsphere/issues/5411#issuecomment-623387472


   I added @Import (TransactionConfiguration.class) in the startup class, using @Transaction is normal,
   At this time, only DatasourceTransactionManager instance
           Add @Import (TransactionConfiguration.class) in the non-starting class, an error is reported when running expected single matching bean but found 2: transactionManager, txManager
   jtaTransactionManager and DatasourceTransactionManager instances
          My code
         @Transactional (rollbackFor = Exception.class)
        @ShardingTransactionType (TransactionType.XA)
      public boolean change (xx) {
       }


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org