@Transactional(rollbackFor = { Exception.class }) 需要把异常抛出到带有@Transactional(rollbackFor = { Exception.class }) 这个注释的函数外面,回滚才能生效。出现错误:org.springframewor...
分类:
编程语言 时间:
2014-10-17 23:07:08
阅读次数:
389
http://acm.hdu.edu.cn/showproblem.php?pid=2209
不知为啥有种直觉,会出状压+搜索的题,刷几道先
简单的BFS,状压表示牌的状态,
//#pragma comment(linker, "/STACK:102400000,102400000")
#include
#include
#include
#include
#include ...
分类:
其他好文 时间:
2014-10-17 18:48:08
阅读次数:
143
/* try { int i = int.Parse(Console.ReadLine()); Console.Write("没有错误的话会执行:"+i+",");//运行正常,执行这里 } catch (Exception e) //出现错误会跳到这里 { Console.Write("程序出现未...
分类:
其他好文 时间:
2014-10-17 18:08:43
阅读次数:
135
Link:http://stackoverflow.com/questions/3256369/navigating-java-call-stack-in-eclipse解决方法:In the "debug perspective", find/show the view named "debug"...
分类:
编程语言 时间:
2014-10-17 15:07:25
阅读次数:
195
在使用NSUserDefaults的时候插入数据有时候会报以下错误:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSUserDefaults setObject:forKey:]: attempt to insert non-property list ...
分类:
其他好文 时间:
2014-10-17 11:53:01
阅读次数:
182
题目链接:hdu 3966 Aragorn's Story
题目大意:给定一个棵树,然后三种操作
Q x:查询节点x的值I x y w:节点x到y这条路径上所有节点的值增加wD x y w:节点x到y这条路径上所有节点的值减少w
解题思路:树链剖分,用树状数组维护每个节点的值。
#pragma comment(linker, "/STACK:1024000000,1024000...
分类:
编程语言 时间:
2014-10-17 10:19:10
阅读次数:
225
以下内容整理自网络
1.问题描述
Tomcat在启动时出现如下异常问题:
严重: IOException while loading persisted sessions: java.io.EOFException
严重: Exception loading sessions from persistent storage
2.解决方案
删除T...
分类:
其他好文 时间:
2014-10-17 10:14:03
阅读次数:
152
1、错误描述
Exception in thread "main" java.lang.IllegalArgumentException: Cannot format given Object as a Date
at java.text.DateFormat.format(DateFormat.java:301)
at java.text.Format.format(Format.java...
分类:
编程语言 时间:
2014-10-17 00:41:13
阅读次数:
346
asp.net 由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值 用户代码未处理 MyCement.Database.AdoNet.AdoException Message=Could not execute query Source=MyCement.Database Stack...
分类:
其他好文 时间:
2014-10-16 20:23:23
阅读次数:
248
??
5. util包
5.1. 架构
http://www.scala-lang.org/docu/files/collections-api/collections.html
The following figure shows all collections in package scala.collection. These are all high-l...
分类:
其他好文 时间:
2014-10-16 16:35:53
阅读次数:
248