Home

Published

- 1 min read

hibernate cfg xml not found intellij

img of hibernate cfg xml not found intellij

The solution for this is noted below

hibernate cfg xml not found intellij

Solution

   If you are working on IntelliJ Idea then make a folder named "resources" under src\main\java. Open Module setting of your project, select "Modules" from left and in the "sources" tab select the newly created "resources" folder and mark it as "Resources
Configuration con = new Configuration().configure("hibernate.cfg.xml");

Try other methods by searching on the site. That is if this doesn’t work