Eclipse错误解决方法
LiuYP_1024
我的菜鸡学习之路!bug永无止境!!debug永不止步!!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Unknown system variable ‘tx_isolation’ 和 对实体“characterEncoding”的引用必须以';'分隔符结尾 两个问题
问题1: Caused by: java.sql.SQLException: Unknown system variable ‘tx_isolation’ 出错原因: mysql-connector-java的版本太低,数据库的版本太高(我这里jar5.1.16,而数据库版本8.0.16) 解决: 将mysql-connector-java升级到新版本 问...原创 2019-11-24 23:59:57 · 273 阅读 · 0 评论 -
Eclipse中新建Maven项目,解决丢失src/main/java(missing)文件问题
1.右键项目名称,选择最后一项“properties” 2.点解Source, 3.再点击Edit 4.点击下一步(next,不是finish) 5.在Inclusion patterns添加丢失的src/main/java,点击finish即可解决问题。 ...转载 2019-11-04 23:00:46 · 1791 阅读 · 0 评论 -
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
问题: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project travel: Compilation failure [ERROR] No compiler is provided in this environm...原创 2019-11-01 14:25:15 · 415 阅读 · 0 评论 -
The method xxx() of type xx must override or implement a supertype method
出错情况:The method xxx() of type xx must override or implement a supertype method 在一个UserDao中定义了几个方法,然后在UserDaoImpl中实现方法(几个方法先后写的),原本前面几个写着标注@Override都没问题,但到后面实现的两个方法都出现了该错误:The method xxx() of type xx ...原创 2019-10-18 00:43:05 · 2504 阅读 · 1 评论 -
Parameter index out of range (1 > number of parameters, which is 0).
错误提示:Parameter index out of range (1 > number of parameters, which is 0). 原因:我一个SQL语句的英文问号?打成中文的问号?了 @Test public void testDelete() { JdbcTemplate template=new JdbcTemplate(JDBCUtils.getDataS...原创 2019-10-17 23:27:03 · 361 阅读 · 0 评论 -
eclipse重新部署tomcat后原来的web工程全部报错
因为eclipse的tomcat忽然间不能添加和删除工程,所以就直接把tomcat删除了,然后再重新部署,原以为这样就可以了,可是重新部署tomcat后发现原来的web工程居然全部都报错了(新建的web工程不会),如下图: 查看工程的代码也没有发现和原来有什么变化,可是当检查到Libraries(右键项目--Build Path--Configure Build Path)的时候发现, ...转载 2019-10-12 00:40:20 · 373 阅读 · 0 评论 -
Eclipse运行java文件时,错误提示框:Editor does not contain a main type
当运行java文件时出现以下错误: 错误提示框:Editor does not contain a main type 出错原因:当前的源代码(所有的包)没有被添加到build path中 注意此时显示的都是文件的模样,而不是有包的样子 解决方法:如图 完成操作后,文件夹变成包的样子 ...原创 2019-10-07 15:09:06 · 650 阅读 · 0 评论 -
@Test出错:no test found with test runner JUnit5和The @Test annotation is disallowed for this location
情况一: The @Test annotation is disallowed for this location 出错原因;@Test位置放错了,我把它放在了类上面,@Test应该放在测试方法的上面,这是低级错误 情况二: 弹出提示:no test found with test runner JUnit5 出错原因:测试的方法应该用public修饰 ...原创 2019-10-09 22:11:51 · 315 阅读 · 0 评论
分享