I'm making a Maven Java project in Intelij, with persistance using Hibernate.
In my first test of persisting an object, Hibernate acuses an error that says it's not finding hibernate.cfg.xml in src folder. But it is there, as you can see in the image bellow.
I've tried to put hibernate.cfg in the directory main/resources too, and it stills not be found.
Th topic Hibernate ConfigurationException: Could not locate cfg.xml resource [hibernate.cfg.xml] IntelliJ didn't helped me, because I don't know how to do what the answers describes.
Thanks for the help