最新回答 / Sophomore
已解決??!把jar包放在lib下后關(guān)閉tomcat記得在部署那里remove掉這個項目,之后重啟tomcat再重新部署!運行成功!
2017-04-17
最贊回答 / 清茶Lin
把struts的antlr2.7.2包勾選掉就好了MyEclipse中,在MyEclipse 下,windows–>preferences–>MyEclipse–>Project libraries
2017-04-06
最贊回答 / 仁夏
應該是版本問題,我也出現(xiàn)這樣的問題(以下是我改正的代碼,可以正常運行)@Test?? ?public void testSchemaExport(){?? ??? ?//創(chuàng)建配置對象?? ??? ?Configuration config=new Configuration().configure();?? ??? ?//創(chuàng)建服務注冊對象?? ??? ?ServiceRegistry serviceRegistry = (ServiceRegistry) new StandardServiceRegist...
2017-04-06
最贊回答 / lobigo
這個錯誤是生成表的映射文件沒有找到引起的,相對于hibernate.cfg.xml文件來說,你寫的<mapping resource="Stdents.hbm.xml"/>路徑是找不到Students.hbm.xml文件的,建議使用絕對路徑,改為<mapping resource="entity/Students.hbm.xmls"/>
2017-04-06