Hibernate出现Hibernate.properties not found错误
在运行Hibernate时报空指针异常
1. 若是JDK9,则先考虑是否有相应的jar包存在:
链接:https://pan.baidu.com/s/1Scll4gUNuTlpP1LPCoNlsw
提取码:oeqo
2. 若是JDK10,则需要加一条语句
–add-modules java.xml.bind
run as – run configurations – arguments标签下的 VM arguments
3. 检查配置文件中的数据库连接是否正确
4. 是否添加映射文件配置
若通过xml文件配置
检查是否写包名
id是否配置正确