I am doing a project of educational purposes on spring + hibernate. By examples, I wrote part of the functionality, but I specified Spring 4.1.5 and hibernate 4 in dependencies. Errors occurred with the creation of beans.
Then I learned that there might be issues with version compatibility and replaced versions with spring 3.0.5 and hibernate 3.3.0. But these versions work on java 7, but now everyone switched to 8 and 9? (I may be wrong, correct). And the project on such versions also does not start (One error remains, it is solved by rolling back to java 7).
Hence the question: How to write on spring + hibernate in our days? What versions of these frameworks are compatible? I just can not find a good article with an example of the proper creation of the Context and the Beans on this bundle. I would be grateful for any help.