Answer the question
In order to leave comments, you need to log in
Hibernate ignores the settings and works with a different base. What could be the problem?
I just started to deal with Hibernate, created a database in MySQL test, registered everything in hibernate.cfg.xml (I wrote / test in the url before the database). Wrote a couple of tests, everything seems to work. When I change the url to the base, hibernate does not react at all.
here is a link to github with sources
https://github.com/tagantroy/HibernateExample
Answer the question
In order to leave comments, you need to log in
Tell me, how and on what do you launch the project? How do you collect?
Regardless of which build system you choose, they all compile their classes into some sort of separate folder, and usually store extra resources like hibernate.cfg.xml in that folder as well. The easiest way is to search the file system for the hibernate.cfg.xml file and see its contents wherever it is found. I think there is a version with the URL "/test"...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question