摘要: 今天在使用Spring4整合Hibernate4过程中出现错误org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread错误的原因是由于hibernate4修改了hibernate3中getCurrentSession()方法的支持,需要在service... 阅读全文
posted @ 2016-09-17 19:55 endy_zhu 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: Javascript类的创建有两种方式一、声明一个函数保存在变量里,然后在这个函数的内部通过对this添加属性和方法来实现对类添加属性和方法。var Book = function (id,bookname,price){ this.id = id; this.bookname = bookname; this.price = price;}二、通过在类的原型(prototype)上来... 阅读全文
posted @ 2016-09-17 19:16 endy_zhu 阅读(197) 评论(0) 推荐(0) 编辑