This question already has an answer here:
这个问题在这里已有答案:
- org.hibernate.HibernateException: /hibernate.cfg.xml not found 7 answers
org.hibernate.HibernateException:/hibernate.cfg.xml未找到7个答案
I got stuck with my standalone hibernate project. I am getting this error
我陷入了独立的hibernate项目。我收到了这个错误
Nov 10, 2015 4:24:55 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
Nov 10, 2015 4:24:55 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xml not found
1 个解决方案
#1
1
The exception says it all, it can't find the hibernate.cfg.xml file. That file needs to be in the classpath somewhere.
例外情况说,它找不到hibernate.cfg.xml文件。该文件需要位于类路径中的某个位置。
#1
1
The exception says it all, it can't find the hibernate.cfg.xml file. That file needs to be in the classpath somewhere.
例外情况说,它找不到hibernate.cfg.xml文件。该文件需要位于类路径中的某个位置。