相关代码 @Rollback(value = false) @Test
public void test() throws Exception { for (int i = 0; i < 10; i++) { }
Thread thread1 = new Thread(new Runnable() { @Override
public void run() { for (int i = 0; i < 10; i++) {
normal(Thread.currentThread().getId(), i);
}
}
});
Thread thread2 = new Thread(new Runnable() { @Override
public void run() { for (int i = 0; i < 10; i++) {
normal(Thread.currentThread().getId(), i);
}
}
});
thread1.start();
thread2.start();
} public void normal(long id, int n) {
auditLoggingService.insertAuditLogging("修改个人密码成功" + id + "/" + n, 56, 6, 0,
BaseConstants.AuditLoggingOperatorType.MODIFY, "修改个人密码", "修改密码", 0, "", "", "无", "", BaseConstants.UserInfo.USER_CAT_INNER, "yangyan", "");
}
1 回答
- 1 回答
- 0 关注
- 1237 浏览
添加回答
举报
0/150
提交
取消