Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.itcast.j
2017-05-02 11:30
567 查看
报错信息:
解决方法:重新拷贝application-dao.xml
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.itcast.jk.dao.BaseDao]: Specified class is an interface
解决方法:重新拷贝application-dao.xml
其实是要把: http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> 中的-3.0去掉这很重要 还有就是注意 //这里是要引入实现类,不是接口,易错 <bean id="deptService" class="cn.itcast.jk.service.impl.DeptServiceImpl"> <property name="baseDao" ref="baseDao"></property> </bean>
相关文章推荐
- org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.jboss.resteasy.plug
- org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.io.Serializable]:
- 启动出现org.springframework.beans.factory.BeanCreationException或者Unable to instantiate default tuplizer
- Caused by: org.springframework.beans.factory.BeanExpressionException: Expression parsing failed;
- Spring MVC集成thymeleaf时提示:defined in ServletContext resource [/WEB-INF/SrpingMVCTest-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException
- 解决org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms org.springframework.beans.BeanInstantiation
- Caused by: org.springframework.beans.factory.BeanCreationException
- Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field
- Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field
- 严重: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error cre
- org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component c
- Context initialization failed org.springframework.beans.factory.BeanCreationException:
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'dataSourc
- Initialization of bean failed; nested exception is org.springframework.beans.factory.: 错误分析
- org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.XXX.util.spri
- org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.wei
- Caused by: org.springframework.beans.factory.BeanCreationException
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [
- Caused by: java.lang.ClassCastException: org.springframework.web.SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializer错误解决办法
- org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.serv