开发者

hibernate.properties classpath conflict

开发者 https://www.devze.com 2022-12-21 19:14 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消