C3P0报错。FileNotFoundException: Resource not found at path '/mchange-commons.properties'

网上搜了下,看到有个老外出了这个问题,发邮件不知道是不是给c3p0的开发团队,回复如下
hi,

you are logging c3p0 libs at DEBUG levels. c3p0 / com.mchange libs are intended to be logged at INFO. you’ll get a lot of superfluous information, including Exception stack traces, if you log at less restrictive levels than INFO.

c3p0 and its supporting libraries permit configuration resources to be put in a variety of places, including the resource-path '/mchange-commons.properties’. c3p0 looks in those places. at DEBUG levels, it reports not finding anything there, and the Exception that signals failing to find anything.

please set your log level for com.mchange libs to INFO. turn on DEBUG level logging only when you have an issue to investigate (and ideally do so selectively, for particular classes or packages, to avoid a firehose of unwanted information).
However, I’d recommend that you set INFO as the default (it’s how most third-party libraries expect to be logged), and make the Exception your own application, which should log at DEBUG. Suppose that your application lives in the package edu.cmu.aforget. Then…


意思很明白,这是警告,不是异常,别把c3p0的日志级别搞成debug。大多数第三方开源软件的建议都是info级别,你自己的可以是debug,如果你把第三方的这些都搞成debug了,那活该你出异常
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值