java
健康快乐6688
健康快乐最重要。
展开
-
Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be
今天测试使用JdbcTemplate,报错,报错内容如下:Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class ...原创 2019-02-01 14:56:59 · 2047 阅读 · 0 评论 -
Could not initialize class org.springframework.jdbc.core.StatementCreatorUtils
在编译的时候没有错误,但是 用 Junit Test的时候,报下面的错误。java.lang.NoClassDefFoundError: Could not initialize class org.springframework.jdbc.core.StatementCreatorUtils如下图所示,后来发现是spring-core-4.0 的版本有点低了,更新成spring-co...原创 2019-02-01 15:54:02 · 2036 阅读 · 0 评论 -
Type mismatch affecting row number 0 and column type 'NUMBER'
test程序报错,Type mismatch affecting row number 0 and column type 'NUMBER'is of type [java.lang.Long] and cannot be converted to required type [long]因为下面的写法有错误,应该是Long.class应该是大写的Long。long是原始数据类型,...原创 2019-02-01 18:04:21 · 1839 阅读 · 1 评论 -
java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException
这两天程序一直报错,下面这个错误java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(Abst...原创 2019-02-03 17:40:05 · 8098 阅读 · 3 评论 -
java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSh
今天程序测试jdbc的方式,程序一直报错,错误内容如下:java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; ...原创 2019-02-11 11:26:00 · 3760 阅读 · 1 评论 -
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testupdate
junit4测试的时候,测试函数不能有参数,有参数就会报错。也不能有范围值,函数类型必须是void。java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testupdate...原创 2019-02-12 11:18:25 · 2407 阅读 · 1 评论 -
WEB-INF文件夹下的文件是无法通过地址栏访问的
WEB-INF文件夹下的文件是无法通过地址栏访问的默认情况下,是不能访问的。可以访问WebContent文件夹下面的文件。原创 2019-02-13 11:15:45 · 600 阅读 · 0 评论 -
arget runtime Apache Tomcat v8.0 is not defined
导入的别人的项目,报Target runtime Apache Tomcat v8.0 is not defined.错误,但是已经把项目的java building Path改成了本机的 tomcat版本,还是有红叉。后来发现需要更改项目配置文件。org.eclipse.wst.common.project.facet.core.xml如下图所示:Tomcat要改成...原创 2019-02-28 19:50:51 · 226 阅读 · 0 评论