查了一下相关资料,整理如下:
原因:Hibernate4 No Session found for current thread原因
解决方法:
1. 在spring 配置文件中加入
程序代码
并且在处理业务逻辑的类上采用注解
程序代码
@Service
public class CustomerServiceImp...
分类:
编程语言 时间:
2015-04-24 10:38:12
阅读次数:
194
Bundle可以传递对象,message又可以传递Bundle于是就可以利用buddle作为中间载体传递对象了Messagemsg=Message.obtain();Bundleb=newBundle();b.putParcelable("MyObject",(Parcelable)object);...
分类:
其他好文 时间:
2015-04-19 14:28:14
阅读次数:
185
Here is the source code about obtain a snapshot of a website by using phantomJS.
var webPage = require("webpage"), address, filename, height, width; // generate webPage object
var page = webPage.crea...
分类:
Web程序 时间:
2015-04-16 12:33:11
阅读次数:
152
只是列举一下伪算法的的函数步骤,留待以后思考。需要的函数说明:Item* FindItemBySourceID(); //获取同类型的物品并且数量最小具体函数操作:bool BagManager::Obtain(Item* pItem){ Item* pTempItem = FindItemB...
分类:
其他好文 时间:
2015-04-15 13:03:57
阅读次数:
124
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number con...
分类:
其他好文 时间:
2015-04-12 16:16:59
阅读次数:
128
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135...
分类:
其他好文 时间:
2015-04-07 17:24:47
阅读次数:
178
调用Message.obtain()从消息池中获得一个message对象,而不是直接new一个message对象,可以节省内存开销。也可以用handler.obtainMessage(),其实是一样的,obtainMessage()就是返回Message.obtain()message.sendTo...
分类:
移动开发 时间:
2015-03-14 23:11:56
阅读次数:
231
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135...
分类:
其他好文 时间:
2015-03-05 14:38:01
阅读次数:
206
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number con...
分类:
其他好文 时间:
2015-03-02 19:09:06
阅读次数:
193
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135...
分类:
其他好文 时间:
2015-02-27 20:12:12
阅读次数:
266