mrtbs 发表于 2009-1-11 14:00:55

急求"hibernate.cfg.xml not found"这个问题如何解答

各位:
      我是用myeclipse来编写的程序,但总会出现org.hibernate.HibernateException: /hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1439)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1461)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1448)
at ch03.hibernate.Test.main(Test.java:9)
这个错误,我已经把hibernate.cfg.xml这个文件放在src目录下了,但还是出现这个错误,请高手帮忙解答!!!!!!!!!!

kider 发表于 2009-1-12 09:17:55

看看HibernateSessionFactory这个类的代码路径写对了没?
页: [1]
查看完整版本: 急求"hibernate.cfg.xml not found"这个问题如何解答