課程
/后端開發
/Java
/使用Struts2+Hibernate開發學生信息管理功能
運行Test測試方法時是這樣子
2015-09-14
源自:使用Struts2+Hibernate開發學生信息管理功能 1-6
正在回答
3.是正確的<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.show_sql" >true</property>
<property name="hibernate.current_session_context_class">thread</property>
? ??
? ? <mapping resource="entity/Students.hbm.xml"/>
? ? <mapping resource="entity/Users.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Life_0002 提問者
求幫忙,看下什么原因
結果出來了?和老師演示的效果差不多。就是不太懂為什么老師沒問題?
我也是一樣的問題,求解!
qq_左邊_3
舉報
Strust2+Hibernate整合開發案例,Java Web開發技能更上一層樓
1 回答用戶表沒有生成
1 回答沒有生成表
2 回答表沒有生成
1 回答生成表失敗,刪除下面倆句就可以生成表,請問為什么啊?
4 回答沒有生成表,也沒有報錯
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-10-20
3.是正確的<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.show_sql" >true</property>
<property name="hibernate.current_session_context_class">thread</property>
? ??
? ? <mapping resource="entity/Students.hbm.xml"/>
? ? <mapping resource="entity/Users.hbm.xml"/>
? ??
</session-factory>
</hibernate-configuration>