如下是一个模板。解释在注释里。代码是从网上找的 ...
分类:
其他好文 时间:
2016-10-22 23:58:13
阅读次数:
424
最近项目中使用mysql数据库时出现一个问题,运用spring的事务注解(@transaction)来管理事务时,发现用事务注解@transaction标记的方法里,如果出现异常,事务并没有回滚,而是直接提交到了数据库,刚开始还以为是spring的事务配置有问题,检查一遍后还是不行,最后查阅了很多资 ...
分类:
数据库 时间:
2016-10-22 17:24:18
阅读次数:
336
MDB_env 为一个结构体,Opaque structure for a database environment. MDB_txn :Opaque structure for a transaction handle. typedef unsigned int MDB_dbi, A handle... ...
分类:
数据库 时间:
2016-10-22 07:56:56
阅读次数:
526
2016-10-21 14:41:47,551 [ERROR] [http-nio-8032-exec-2] TransactionSynchronizationUtils:171 - TransactionSynchronization.afterCompletion threw exceptio ...
分类:
其他好文 时间:
2016-10-21 16:02:37
阅读次数:
1765
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, MovingAverage m = new M ...
分类:
其他好文 时间:
2016-10-15 07:40:31
阅读次数:
433
本文转至:http://blog.csdn.net/cug_jiang126com/article/details/49824471 在mysqldump过程中,之前其实一直不是很理解为什么加了--single-transaction就能保证innodb的数据是完全一致的,而myisam引擎无法保证 ...
分类:
数据库 时间:
2016-10-14 13:51:22
阅读次数:
232
1.TOP——Linux进程监控 top: linux 进行监控 运行时间 当前时间 当前登录用户数 cpu 内存 load average 系统负载 (1分钟 5分钟 15分钟【一般会小于1,高于5会硬性系统性能,需要详细查看进程) 2.VMSTAT——虚拟内存统计 Linux的vmstat命令用 ...
分类:
系统相关 时间:
2016-10-13 19:08:29
阅读次数:
211
声明式的事务处理中,要配置一个切面,即一组方法,如 Java代码 <!-- 声明式事务管理 --> <!-- 隔离级别配置--> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <t ...
分类:
编程语言 时间:
2016-10-13 14:07:54
阅读次数:
161
测试计划组成:一个计时器(2秒),一个事物控制器,两个http request 在Transaction Controller中不勾选第2个选项就相当于lr中的忽略思考时间 没有勾选第2项的执行结果: 勾选了第2项的执行结果: ...
分类:
其他好文 时间:
2016-10-12 11:38:26
阅读次数:
160