已采納回答 / Saving_
最主要的報錯信息呢。。給我的給你參考public void test1(){?? ??? ?Configuration configuration = new Configuration().configure();?? ??? ?//創建配置對象?? ??? ??? ??? ?ServiceRegistry st = new ServiceRegistryBuilder().?? ??? ??? ??? ?applySettings(configuration.getProperties()).buil...
2016-11-29
最新回答 / hengjava
http://101.96.8.141/archive.eclipse.org/technology/epp/downloads/release/kepler/SR1/eclipse-standard-kepler-SR1-win32-x86_64.zip用這個,跟老師的版本一樣。
2016-11-28
已采納回答 / SkyFreecss
? ? ? ? ? ? ? 我終於找到你的問題出在哪了,你的hibernate.cfg.xml中url這裡寫的有問題,jdbc:mysql:///hibernate?useUnicode=true&characterEncoding=UTF-8別換行,你true後面的回車要去掉,useUnicode只能接收true或false,它把換行也算進去了,所以產生了錯誤。
2016-11-24