错误日志:

2014-09-24 10:50:16 [org.springframework.context.support.FileSystemXmlApplicationContext]-[INFO] Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@19b8e059: startup date [Wed Sep 24 10:50:16 CST 2014]; root of context hierarchy
2014-09-24 10:50:16 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from URL [file:/D:/Worksapce/chongqing/cqetlserver1/target/classes/conf/spring/applicationContext.xml]
2014-09-24 10:50:16 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Overriding bean definition for bean 'cacheManager': replacing [Generic bean: class [com.asiainfo.cache.CacheManager]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [D:\Worksapce\chongqing\cqetlserver1\target\classes\com\asiainfo\cache\CacheManager.class]] with [Generic bean: class [org.springframework.cache.support.SimpleCacheManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:/D:/Worksapce/chongqing/cqetlserver1/target/classes/conf/spring/applicationContext.xml]]
2014-09-24 10:50:16 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from URL [file:/D:/Worksapce/chongqing/cqetlserver1/target/classes/conf/spring/rabitmq.xml]
2014-09-24 10:50:16 [org.springframework.context.support.PropertySourcesPlaceholderConfigurer]-[INFO] Loading properties file from file [D:\Worksapce\chongqing\cqetlserver1\target\classes\conf\rabbitmq.properties]
2014-09-24 10:50:16 [org.springframework.context.support.PropertySourcesPlaceholderConfigurer]-[INFO] Loading properties file from file [D:\Worksapce\chongqing\cqetlserver1\target\classes\conf\system.properties]
2014-09-24 10:50:17 [org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor]-[INFO] Initializing ExecutorService
2014-09-24 10:50:17 [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-[INFO] Bean 'executor' of type [class org.springframework.scheduling.config.TaskExecutorFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2014-09-24 10:50:17 [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-[INFO] Bean 'executor' of type [class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2014-09-24 10:50:17 [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler]-[INFO] Initializing ExecutorService 'scheduler'
2014-09-24 10:50:17 [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-[INFO] Bean 'scheduler' of type [class org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
init cache.......
Sep 24, 2014 10:50:17 AM com.asiainfo.dao.impl.SuperDao queryForList
INFO: select FUNC_TYPE,DLL_DEF,DLL_FUNC FROM proc_func_def_java
2014-09-24 10:50:17 [com.mchange.v2.log.MLog]-[INFO] MLog clients using log4j logging.
2014-09-24 10:50:17 [com.mchange.v2.c3p0.C3P0Registry]-[INFO] Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10]
2014-09-24 10:50:17 [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource]-[INFO] Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgez9d9419xsp1gq3x0c7|6c5b675e, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgez9d9419xsp1gq3x0c7|6c5b675e, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, jdbcUrl -> jdbc:mysql://localhost:3306/md?useUnicode=true&characterEncoding=utf8&mysqlEncoding=utf8, lastAcquisitionFailureDefaultUser -> null, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 2, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
Sep 24, 2014 10:50:17 AM com.asiainfo.dao.impl.SuperDao queryForList
INFO: select * from data_trans_ftpserv
2014-09-24 10:50:17 [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler]-[INFO] Shutting down ExecutorService 'scheduler'
2014-09-24 10:50:17 [org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor]-[INFO] Shutting down ExecutorService
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.asiainfo.main.SpringApplication.getInstance(SpringApplication.java:13)
at com.asiainfo.main.Main.main(Main.java:7)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataTransTask': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.asiainfo.service.impl.DataTransServiceImpl com.asiainfo.proc.DataTransTask.dataTransService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataTransServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.asiainfo.dao.impl.DataTransDaoImpl com.asiainfo.service.impl.DataTransServiceImpl.dataTranDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.asiainfo.dao.impl.DataTransDaoImpl] 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)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:94)
at com.asiainfo.main.SpringApplication$LOAD.<clinit>(SpringApplication.java:9)
... 2 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.asiainfo.service.impl.DataTransServiceImpl com.asiainfo.proc.DataTransTask.dataTransService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataTransServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.asiainfo.dao.impl.DataTransDaoImpl com.asiainfo.service.impl.DataTransServiceImpl.dataTranDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.asiainfo.dao.impl.DataTransDaoImpl] 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)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
... 15 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataTransServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.asiainfo.dao.impl.DataTransDaoImpl com.asiainfo.service.impl.DataTransServiceImpl.dataTranDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.asiainfo.dao.impl.DataTransDaoImpl] 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)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1017)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:960)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480)
... 17 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.asiainfo.dao.impl.DataTransDaoImpl com.asiainfo.service.impl.DataTransServiceImpl.dataTranDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.asiainfo.dao.impl.DataTransDaoImpl] 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)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
... 28 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.asiainfo.dao.impl.DataTransDaoImpl] 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)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1103)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:963)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480)
... 30 more

找到了这里:

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.asiainfo.dao.impl.DataTransDaoImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency.

原来只是这类没有添加注解,疯了!!!!!!!!!!

import java.util.List;
import java.util.Map; public class DataTransDaoImpl extends SuperDao implements DataTransDao {
// ……
}

加上@Repository,解决,这样的错误除了粗心还能再粗心点么。。。。。。。。。。。

import java.util.List;
import java.util.Map; @Repository
public class DataTransDaoImpl extends SuperDao implements DataTransDao {
// ……
}

  

  

最新文章

  1. select2 demo
  2. jquery 操作大全
  3. Java Io 之 编码
  4. IEEE802.15.4 部分无线收发芯片比较
  5. C#中的多线程 - 基础知识
  6. 【转】深入浅出Android Support Annotation
  7. ManyToMany关联方式----
  8. 面积最大的全1子矩阵--九度OJ 1497
  9. 数往知来C#之接口 值类型与引用类型 静态非静态 异常处理 GC垃圾回收 值类型引用类型内存分配&lt;四&gt;
  10. MYSQL 5.7 主从复制 -----GTID说明与限制 原创
  11. Spark Streaming揭秘 Day14 State状态管理
  12. HDU1569+最大点权集
  13. Microsoft Visual Studio与Firefly 加载的项目已建议,更新源代码地位问题
  14. setTimeout与setInterval的区别
  15. Nginx基础学习(一)&mdash;Nginx的安装
  16. byte和长度为8的boolean数组互相转换
  17. gulp前端自动化构建并上传oss
  18. 20165231 2017-2018-2《Java程序设计》课程总结
  19. 剑指offer-复杂链表的复制
  20. 通过gmapping和伪造的odom,完成Kinect建图

热门文章

  1. java el表达式报空指针异常(nullpointexception)
  2. Django使用cors解决跨域问题
  3. 用diiv实现多个方块居中嵌套--padding
  4. Ralasafe
  5. P1082 数列分段
  6. 2019年7月20日针对iPhone7/7P有锁机的爆破限制
  7. POJ 3660 Cow Contest(floyed运用)
  8. 2018-8-10-win10-uwp-商业游戏-1.2.1
  9. jQuery 工具类函数-检测对象是否为原始对象
  10. HTML自制计算器