在maven中使用c3p0连接池的c3p0-config.xml文件出现named-config with name ‘xxxxx‘ does not exist. Using default-con
生活随笔
收集整理的這篇文章主要介紹了
在maven中使用c3p0连接池的c3p0-config.xml文件出现named-config with name ‘xxxxx‘ does not exist. Using default-con
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
本人之前都用的java下的web application創建項目,第一次用maven創建web項目,
在我導c3p0配置文件的時候出現了
named-config with name 'xxxx' does not exist. Using default-config extensions.
?
剛開始以為依賴包沒導進來,后面把之前項目的lib目錄的jar包全復制進來發現也沒用,
看到有博客說:要放到src目錄下,讓類可以查到這個文件
本人從src,main,Java,全部試了一遍,都沒用
最后我想起來這是一個maven項目,我就把它放在resources資源目錄下果然就可以用了
?
?所以大家遇到問題多試試,超級工程師都是在一個一個bug身上踏過來的,共勉!
總結
以上是生活随笔為你收集整理的在maven中使用c3p0连接池的c3p0-config.xml文件出现named-config with name ‘xxxxx‘ does not exist. Using default-con的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 斐讯(Phicomm)空气检测仪(悟空
- 下一篇: 北美电影票房Top10-2020年1月1