![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
健康快乐6688
健康快乐最重要。
展开
-
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 · 2042 阅读 · 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 · 1846 阅读 · 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 · 8106 阅读 · 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 · 3782 阅读 · 1 评论 -
使用@Autowired 自动装载,报java.lang.NullPointerException错误
使用@Autowired 自动装载,但是报java.lang.NullPointerException错误,后来测试,发现如下图所示,jdbcTemplate输出为null 经反复研究发现,自动装载并没有把配置文件中配置的bean转载到内存中。采用下面的方式,在应用实现类中去测试就可以测试通过,输出正常的bean。在这个中方式,在接口实现类中,TellersADaoIm...原创 2019-02-12 09:42:54 · 4512 阅读 · 1 评论