修改的一个项目,但是启动服务器的时候,会报错2011-05-20 14:22:35,062 ERROR [main] DispatcherServlet.initServletBean(314) | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exerciseServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.gpcsoft.srplatform.auth.dao.ExerciseDao com.gpcsoft.srplatform.auth.service.impl.ExerciseServiceImpl.exerciseDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.gpcsoft.srplatform.auth.dao.ExerciseDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=ExerciseDaoJDBC)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)这是什么错误啊,看的我迷迷糊糊的
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exerciseServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.gpcsoft.srplatform.auth.dao.ExerciseDao com.gpcsoft.srplatform.auth.service.impl.ExerciseServiceImpl.exerciseDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.gpcsoft.srplatform.auth.dao.ExerciseDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=ExerciseDaoJDBC)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)这是什么错误啊,看的我迷迷糊糊的
解决方案 »
- Spring mvc 的restful拦截路径问题,,谢谢啦 急。。。。。。。。。。
- ibatis问题,困扰我一天了,来者即有分
- 为什么有些开源项目没有源文件提供下载
- 大大们 一个strusts2的小异常 有点困惑 无耻的来问了
- 怎样才能真正利用struts进行开发
- applicationContext.xml干什么用的?请教一下,谢谢
- jdbcdriver有几种注册方法
- 使用weblogic做JMS出现异常,请高手指点。
- SQLSERVER中DateTime型字段,怎么取出,取出后一般怎样转换成java的日期对象?
- ★★★★SomeThing Wrong with JBoss-Tomcat + j2SDK....!★★★
- struts2 select
- 当我点击任意td时,怎么样获得这个td所在行的第一个td的值??
这才是问题,看一下ExerciseDao有没有问题,spring配置是否有问题