已采納回答 / 就是要戰逗
Hibernate4 的話不用繼承那個 ?..Support 類,也不需要這個HibernateTemplate ,注入一個sessionFactory, 然后這個sessionFactory.getCurrentSession,之后按Hibernate正常處理 。對了,需要在application里面 hibernate設置那里 ? 加上 這個:?<prop key="hibernate.current_session_context_class">org.springframework.o...
2016-11-04
最贊回答 / 慕容3563930
這個問題解決了,不用添加<init-param>? ??????????? <param-name>flushMode</param-name>? ??????????? <param-value>AUTO</param-value> 就可以了,但是department還是空值啊
2016-11-01
最新回答 / Walter01
因為你的CSS和js和jsp文件在同一文件夾下,你加完${ pageContext.request.contextPath }/(文件夾名)后還需要加上那個文件夾名
2016-10-29
List<Employee> list = this.getHibernateTemplate().find(hql, employee.getUserName(),employee.getPassword());
這里find方法報錯
這里find方法報錯
2016-10-28
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException:..
###報錯,網上找的方法都搞不定!
###報錯,網上找的方法都搞不定!
2016-10-25