六月?15,?2017?2:12:44?下午?org.hibernate.annotations.common.Version?<clinit>
INFO:?HCANN000001:?Hibernate?Commons?Annotations?{4.0.2.Final}
六月?15,?2017?2:12:44?下午?org.hibernate.Version?logVersion
INFO:?HHH000412:?Hibernate?Core?{4.2.4.Final}
六月?15,?2017?2:12:44?下午?org.hibernate.cfg.Environment?<clinit>
INFO:?HHH000206:?hibernate.properties?not?found
六月?15,?2017?2:12:44?下午?org.hibernate.cfg.Environment?buildBytecodeProvider
INFO:?HHH000021:?Bytecode?provider?name?:?javassist
六月?15,?2017?2:12:44?下午?org.hibernate.cfg.Configuration?configure
INFO:?HHH000043:?Configuring?from?resource:?/hibernate.cfg.xml
六月?15,?2017?2:12:44?下午?org.hibernate.cfg.Configuration?getConfigurationInputStream
INFO:?HHH000040:?Configuration?resource:?/hibernate.cfg.xml
六月?15,?2017?2:12:44?下午?org.hibernate.internal.util.xml.DTDEntityResolver?resolveEntity
WARN:?HHH000223:?Recognized?obsolete?hibernate?namespace?http://hibernate.sourceforge.net/.?Use?namespace?http://www.hibernate.org/dtd/?instead.?Refer?to?Hibernate?3.6?Migration?Guide!
六月?15,?2017?2:12:44?下午?org.hibernate.cfg.Configuration?addResource
INFO:?HHH000221:?Reading?mappings?from?resource:?Students.hbm.xml
六月?15,?2017?2:12:44?下午?org.hibernate.internal.util.xml.DTDEntityResolver?resolveEntity
WARN:?HHH000223:?Recognized?obsolete?hibernate?namespace?http://hibernate.sourceforge.net/.?Use?namespace?http://www.hibernate.org/dtd/?instead.?Refer?to?Hibernate?3.6?Migration?Guide!
六月?15,?2017?2:12:44?下午?org.hibernate.cfg.Configuration?doConfigure
INFO:?HHH000041:?Configured?SessionFactory:?null
六月?15,?2017?2:12:44?下午?org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl?configure
INFO:?HHH000402:?Using?Hibernate?built-in?connection?pool?(not?for?production?use!)
2017-06-26
sessionfactory為空,估計是工廠類創建無效或失敗
2017-06-16
我自己是對transaction.save()用try-catch,對拋出的異常再查找解決辦法。這個Junit的報錯看不懂。