springboot: mchange-commons-java-0.2.11.jar (系统找不到指定的文件)

Springboot框架,引入C3P0,启动出现Bug

The Class-Path manifest attribute in D:\develop\maven\repository\com\mchange\c3p0\0.9.5.5\c3p0-0.9.5.5.jar referenced one or more files that do not exist: file:/D:/develop/maven/repository/com/mchange/c3p0/0.9.5.5/mchange-commons-java-0.2.19.jar

 这里引用的依赖是

<dependency>
            <groupId>com.mchange</groupId>
            <artifactId>c3p0</artifactId>
            <version>0.9.5.5</version>
</dependency>

系统找不到mchange-commons-java-0.2.19.jar怎么办?

添加对应依赖

<dependency>
            <groupId>com.mchange</groupId>
            <artifactId>mchange-commons-java</artifactId>
            <version>0.2.19</version>
</dependency>

然后打开本地仓库找到mchange-commons-java-0.2.19.jar,把它拷贝到传c3p0对应版本目录下

 

posted @ 2022-02-23 13:39  猪脚踏浪  阅读(999)  评论(0编辑  收藏  举报