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