You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Test
@Transactional
public void testUpdateDeadlock() throws InterruptedException {
for (int i = 0; i < 10; i++) {
int id = i + 1;
new Thread(() -> {
int updated = jdbcTemplate.update("update tt set id = " + id + " where fileid = 1");
System.out.println(updated);
}).start();
}
Thread.sleep(1000);
}
场景11无法复现
MySQL版本5.7.18
The text was updated successfully, but these errors were encountered: