I have a jar on the classpath which contains a hibernate.properties. This causes problems when my app starts becaus开发者_开发知识库e hibernate tries to use the settings from this file. Is there a way to explicitly specify the file that hibernate should look for, or tell it to ignore the properties file in the dependency jar?
Put the "right" hibernate.properties
on the class path in front of the JAR containing the "unwanted" one.
精彩评论