当我试图在eclipse中运行hibernate
时,我得到以下输出:
INFO: Configuration resource: /hibernate.cfg.xml`enter code here`
Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1402)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1424)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1411)
at Str.ClientProgram.main(ClientProgram.java:12)
有谁知道可能导致此行为的原因?