Hibernate let you decide how you are going to configure database information and so on. It could be either XML or properties file format. It is up to you which one you prefer to go with.
config.properties and hibernate configuration xml
-
30-07-2022 - |
题
I was going through a sample spring-hibernate example source code in Eclipse. Here the database and hibernate configuration are written in config.properties
under resources
folder. And in some other examples I saw these configurations are done in the hibernate configuration xml files.I just confused on seeing this. Is there any difference in doing this?
解决方案
不隶属于 StackOverflow