hibernate.cfg.xml location in maven project
hibernate.cfg.xml location in maven project

[solved] hibernate.cfg.xml location in maven project

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.

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *