今天在做SSH框架整合的时候碰到的这个问题,在测试service层的时候程序正常运行,但是添加Struts,在action层测试的时候提示了如下问题:Could not open Hibernate Session for transaction。大概意思就是数据库连接超时。
解决方法如下:
在spring的配置文件中添加如下配置
给sessionFactory的bean添加如下配置
...
分类:
Web程序 时间:
2015-01-06 23:08:56
阅读次数:
300
http://www.stopdoingitwrong.co.uk/server-2012-rds-there-are-no-remote-desktop-license-servers/On a Server 2012 RDS farm that has been deployed and wor...
分类:
其他好文 时间:
2015-01-06 19:31:42
阅读次数:
495
当你碰到ORA-12520错误时,如下所示: 英文:ORA-12520: TNS:listener could not find available handler for requested type of server 中文:ORA-12520: TNS: 监听程序无法为请求的服务器类型找到可用...
分类:
其他好文 时间:
2015-01-06 17:48:00
阅读次数:
146
以下内容摘自互联网并作了整理。名词:BI(Business Intelligence):商业智能,DW(Data Warehouse):数据仓库,详见正文Q1部分。OLTP(On-Line Transaction Processing):联机事务处理也称为面向交易的处理系统,其基本特征是顾客的原始数...
分类:
其他好文 时间:
2015-01-06 17:32:32
阅读次数:
172
最近在windows下使用通过多线程使用jdbc操作数据库,在线程数设置为5,并且每个线程执行完成后Sleep(1000),在这种情况下,竟然还会报错:java.net.SocketException No buffer space available (maximum connections re...
2.1 Built-in FunctionsThe Python interpreter has a number of functions built into it that are always available. They are listed here in alphabetical o...
分类:
编程语言 时间:
2015-01-06 11:38:36
阅读次数:
300
//执行查询
$("#btnSQL").tap(function(){
var db = openDatabase('mydb', '1.0', 'Test DB', 2 * 1024 * 1024);
db.transaction(function (tx) {
tx.executeSql('CREATE TABLE IF NOT EX...
分类:
数据库 时间:
2015-01-06 10:09:54
阅读次数:
205
How to solve "The installation source for this product is not available." problem?...
分类:
其他好文 时间:
2015-01-06 07:16:56
阅读次数:
188
导入pch 文件,要关联pch:最重要的一步就是,要在pch中添加如下代码:#import #ifndef __IPHONE_3_0#warning "This project uses features only available in iOS SDK 3.0 and later."#endif...
分类:
其他好文 时间:
2015-01-05 20:13:48
阅读次数:
173