我正在使用 c3p0-0.9.2.1 jar,我的类路径和 lib 文件夹中有这个 jar。 每当我第一次连接时,我都会收到此错误:
com.mchange.v2.cfg.DelayedLogItem [ level -> FINE, text -> "The configuration file for resource identifier '/mchange-commons.properties' could not be found. Skipping.", exception -> java.io.FileNotFoundException: Resource not found at path '/mchange-commons.properties'.]
com.mchange.v2.cfg.DelayedLogItem [ level -> FINE, text -> "The configuration file for resource identifier 'hocon:/reference,/application,/' could not be found. Skipping.", exception -> java.io.FileNotFoundException: HOCON lib (typesafe-config) is not available. Also, no resource available at '/reference,/application,/' for HOCON identifier 'hocon:/reference,/application,/'.]
虽然我的应用程序运行良好。我无法判断这个错误是什么,我应该担心这个错误吗?如果是,如何消除这个错误。我做错了什么。
最佳答案
这些是 DEBUG 级别的消息,基本上记录了 c3p0 检查可以放置配置信息的所有不同位置,并且通常在大多数地方找不到任何东西。 FileNotFoundExceptions 是 c3p0 认为那里什么都没有的方式。
c3p0 和 com.mchange
下的库通常旨在以 INFO 级别记录以供正常使用。如果您在 DEBUG 或 FINE 登录,您可能会看到比您想要的更多的东西,包括在搜索配置文件期间完全无害的预期 FileNotFoundExceptions。
关于java - 找不到 c3p0 文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28339601/