我正在使用 hibernate 方式,在编译过程中出现此错误:
package org.hibernate.cfg does not exist
import org.hibernate.cfg.Configuration;
最佳答案
您是否在构建路径中添加了 hibernate jar。因为编译器无法找到具有此程序包的jar。因此,添加并尝试。
您在使用任何IDE吗?
关于java - 包org.hibernate.cfg不存在导入org.hibernate.cfg.Configuration;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3234905/