老師為什么我按照你的方法運(yùn)行Test時(shí),MySQL里沒(méi)有生成學(xué)生表和用戶(hù)表?。?/h1>





運(yùn)行Test測(cè)試方法時(shí)是這樣子
運(yùn)行Test測(cè)試方法時(shí)是這樣子
運(yùn)行Test測(cè)試方法時(shí)是這樣子
舉報(bào)
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>
2016-09-07
求幫忙,看下什么原因
2016-03-13
結(jié)果出來(lái)了?和老師演示的效果差不多。就是不太懂為什么老師沒(méi)問(wèn)題?
2015-09-22