Answer the question
In order to leave comments, you need to log in
What settings to make in spring mvc to work with hibernate config from a separate file?
Hello.
Please tell me what needs to be added to the spring mvc configs in order to work with hibernate, the config of which will be in a separate file?
I don't like examples online. Some hardcoding. All the date of the source and so on are stupidly written in mvc-dispatcher-servlet.xml. Looks ugly. Maybe there are some best practices here?
Answer the question
In order to leave comments, you need to log in
Best practice in the case of spring is to abandon the direct use of Hibernate in favor of Spring Data JPA.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question