@Test public void testMethod01() { orderService.method01(); }
public void method01() { OrderDO order = orderMapper.selectById(1); System.out.println(order); UserDO user = userMapper.selectById(1); System.out.println(user); }
OrderService { public void method01() { OrderDO order = orderMapper.selectById(1); System.out.println(order); UserDO user = userMapper.selectById(1); System.out.println(user); } }
OrderService { public void method01() { OrderDO order = orderMapper.selectById(1); System.out.println(order); UserDO user = userMapper.selectById(1); System.out.println(user); }  }
OrderService { public void method01() { OrderDO order = orderMapper.selectById(1); System.out.println(order); UserDO user = userMapper.selectById(1); System.out.println(user); }  void method01(); @Transactional // 报错，找不到事务管理器 void method02(); void method03(); @Transactional(transactionManager = DBConstants.TX_MANAGER_ORDERS) void method031(); @Transactional(transactionManager = DBConstants.TX_MANAGER_USERS) void method032(); @Transactional(transactionManager = DBConstants.TX_MANAGER_ORDERS) void method05(); @Transactional(transactionManager = DBConstants.TX_MANAGER_USERS, propagation = Propagation.REQUIRES_NEW) void method052(); }
OrderService { public void method01() { OrderDO order = orderMapper.selectById(1); System.out.println(order); UserDO user = userMapper.selectById(1); System.out.println(user); }  void method01(); @Transactional // 报错，找不到事务管理器 void method02(); void method03(); @Transactional(transactionManager = DBConstants.TX_MANAGER_ORDERS) void method031(); @Transactional(transactionManager = DBConstants.TX_MANAGER_USERS) void method032(); @Transactional(transactionManager = DBConstants.TX_MANAGER_ORDERS) void method05(); @Transactional(transactionManager = DBConstants.TX_MANAGER_USERS, propagation = Propagation.REQUIRES_NEW) void method052();  }