问答详情
源自:1-11 通过Hibernate API编写访问数据库的代码

The application must supply JDBC connections at org.hibernate.service.jdbc.

测试时候问题:报错!The application must supply JDBC connections at org.hibernate.service.jdbc. 检查发现是hibernate.cfg.xml

中少了hierbrnate_001 正确的为:<mapping resource="hierbrnate_001/Students.hbm.xml"/>


提问者:sunny_0049 2017-09-04 10:14

个回答

  • sunny_0049
    2017-09-04 15:23:18

    反正正常了?

  • weibo_倍儿帅QAQ_03470657
    2017-09-04 15:20:08

    hibernate.cfg.xml和Students.hbm.xml要保证是同级目录