- 博客(6)
- 收藏
- 关注
原创 java.sql.SQLException: Connections could not be acquired from the underlying database!
情景:maven普通java项目,在使用dbutils工具类,以c3p0作为数据源的时候报错。报错:java.sql.SQLException: Connections could not be acquired from the underlying database!首先:经过检查,driver,url,user,password无误。然后,看了别人的博客,有修改mysql驱动包版本的,也有修改c3p0版本的。所以,我猜想,有可能是mysql驱动包版本和c3p0版本不匹配。因此,我把mysql
2020-06-15 23:33:29
801
原创 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)...
情景:maven普通java项目中(非web),用mvn test命令编译源文件和测试文件的时候报错。报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project MybatisDay02Demo1: There are test failures.Please refer to D:\IntelliJ\IJCode\MybatisDay02D
2020-06-10 17:35:15
520
原创 找不到程序包rog.apache.ibatis.io,rog.apache.ibatis.session等等
问题描述:情景:我的项目是maven 普通jave项目(非web),是测试学习mabatis的。项目通过maven命令compile test package install都没问题,但是点绿色运行按钮就会报已下错误(run configuration已配置好)解决:1、先File->invalidate caches/restart2、打开terminal,运行mvn idea:idea3、如果第二步没报错,maven命令mvn clean清一下原来的编译,再重新mvn test4、点
2020-06-10 09:34:42
938
1
原创 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile failure
运行普通java maven项目报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile failure我这里的原因是:pom.xml中没有指定compiler插件,所以在pom.xml中加入插件解决了问题:```java<build> <plugins> <plugin> <groupId>o
2020-06-09 20:57:21
1383
1
原创 Could not start Tomcat
报错信息:Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project travel: Could not start Tomcat解决:检查你新建的servlet类的访问路径有没有写好,特别是Servlet类的访问路径前面,别忘记了加“/”。...
2020-06-09 20:49:33
6019
6
原创 错误: 在类 ### 中找不到 main 方法
错误: 在类 ### 中找不到 main 方法, 请将 main 方法定义为:public static void main(String[] args)否则 JavaFX 应用程序类必须扩展javafx.application.Application如果你确实已经写了main方法,请保存所有,再试一下。如果和我一样是maven项目,本来是写测试单元,后来改成main方法,要mvn clean一下,再重新mvn compile,再运行main方法。...
2020-06-09 20:38:44
2034
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人