Chinaunix首页 | 论坛 | 博客
  • 博客访问: 532994
  • 博文数量: 59
  • 博客积分: 1169
  • 博客等级: 少尉
  • 技术积分: 572
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-01 18:03
个人简介

信息量太大,每天疲于辨别信息得真伪。

文章分类

全部博文(59)

文章存档

2016年(1)

2014年(9)

2013年(1)

2011年(48)

分类: Java

2011-07-26 17:01:15

org.springframework.beans.factory.BeanCreationException:

  Error creating bean with name 'exampaperController': 

    Injection of autowired dependencies failed; 

 

    nested exception is org.springframework.beans.factory.BeanCreationException: 

      Could not autowire field: 

        private com.es.business.sys_exampaper.service.IExampaperService 

        com.es.business.sys_exampaper.controller.ExampaperController.exampaperService;

 

nested exception is org.springframework.beans.factory.BeanCreationException: 

 Error creating bean with name 'exampaperService' defined in URL 

 [jndi:/localhost/esa/WEB-INF/context/context-exampaper.xml]: 

   Instantiation of bean failed; 

 

   nested exception is org.springframework.beans.BeanInstantiationException: 

     Could not instantiate bean class 

     [com.es.business.sys_exampaper.service.impl.ExampaperServiceImpl]: 

       Is it an abstract class?; 


nested exception is java.lang.InstantiationException


==========================================================================

看异常从最后一个嵌套异常开始看。

实例化异常,

什么导致的?

无法实例话bean,

为什么?

倒数第二句,它是一个抽象类么?


原来我不小心把这个类定义成了抽象类。


解决方法:删掉类名前abstract的定义。


阅读(6123) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~