最新回答 / dop4
在action中登陸成功是否將當(dāng)前用戶(hù)存入actionActionContext.getContext().getSession().put("existEmployee", currentEmployee);這樣就對(duì)了,之前的是屬性不對(duì)應(yīng)
2017-06-15
已采納回答 / punk小調(diào)
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource"> <ref bean="dataSource" /> </property> <property name="hibernateProperties"> <props> &...
2017-06-13
最新回答 / 熊點(diǎn)點(diǎn)
一,把User.hbm.xml放在src目錄下二,在hibernate.cfg.xml加上<property?name="current_session_context_class">thread</property>??<mapping?class="com.gdut.Model.User"/>
2017-06-13