must be of typexxx解决方法
来源:互联网 发布:软件项目验收表 编辑:程序博客网 时间:2024/05/01 01:57
七月 05, 2017 10:46:52 上午 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxx': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'scheStatisticsDao' must be of type [com.**], but was actually of type [com.**$$EnhancerBySpringCGLIB$$68f13f28]at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'scheStatisticsDao' must be of type [com.dotoyo.ims.schedule.dao.ScheFloorDao], but was actually of type [com.dotoyo.ims.schedule.dao.ScheStatisticsDao$$EnhancerBySpringCGLIB$$68f13f28]at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:378)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:512)at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)... 26 more
出现上诉问题:由于在一个service实现类中@resource(name=“”)名称一致,而bean不一样,导致出现此异常
阅读全文
0 0
- must be of typexxx解决方法
- ORA-01847: day of month must be between 1 and last day of month 解决方法
- ORA-01847: day of month must be between 1 and last day of month 解决方法
- Property with 'retain (or strong)' attribute must be of object type 解决方法
- UnsupportedOperationException:setProperty must be overridden by all subclasses of SOAPMessage解决方法>有效
- sudo: must be setuid root错误解决方法.
- Hibernate Dialect must be explicitly set解决方法
- Error: This attribute must be localized. 解决方法
- 【解决方法】tag meta must be empty
- Service Intent must be explicit的解决方法
- Error: This attribute must be localized. 解决方法
- sudo: must be setuid root 错误解决方法
- Service Intent must be explicit的解决方法
- Service Intent must be explicit的解决方法
- Service Intent must be explicit的解决方法
- Service Intent must be explicit的解决方法
- Service Intent must be explicit的解决方法
- Error: This attribute must be localized. 解决方法
- pyfolio的information_ratio无法使用的问题
- 部分A+B(B1016)
- Web15
- 在ABAQUS中使用修正DPC帽盖模型
- GIT 入门使用
- must be of typexxx解决方法
- 剑指offer——从尾到头打印链表
- java版4人过桥问题
- MVC原理
- Eclipse打包问题)Export aborted because fatal lint errors we
- python3爬取使用BeautifulSoup爬取前程无忧的python招聘信息入库MongoDB!
- UITableView数据源代理方法
- 《图解TCP/IP》读书笔记
- bootstarp中modal垂直居中