ConfigurationException: Could not locate cfg.xml resource [hibernate.cfg.xml] in project root folder

后端 未结 6 1381
萌比男神i
萌比男神i 2021-01-02 09:38

I have the hibernate.cfg.xml file in the project root folder.

If I run an application containing:

SessionFactory s         


        
6条回答
  •  Happy的楠姐
    2021-01-02 10:09

    If you are using Maven to build your project, place the 'hibernate.cfg.xml' file under 'src/main/resources'

提交回复
热议问题