質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top