Hello guys, In this article, I will describe where you will keep the hibernate.cfg.xml file in your project directory. It’s a common error while working on maven based hibernate project. So, let’s start…
If you are using Maven to build your project, place the ‘hibernate.cfg.xml’ file under
"src => main => resources''
If the resources folder is not found in your project hierarchy then create a folder
src => main with the named resources. After that write click on the resource folder and mark it as a resources folder.
Hope it Helps.