Answers for "hibernate cfg xml not found intellij"

3

hibernate cfg xml not found intellij

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");
no need to add hibernate.cfg.xml in configure () if u are using default name.
Posted by: Guest on August-11-2021
3

hibernate cfg xml not found intellij

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");
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language