elAdmin- 2020-09-08 14:37:44 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.0) 'QuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
elAdmin- 2020-09-08 14:37:44 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'QuartzScheduler' initialized from an externally provided properties instance.
elAdmin- 2020-09-08 14:37:44 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.0
elAdmin- 2020-09-08 14:37:44 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: me.zhengjie.modules.quartz.config.QuartzConfig$QuartzJobFactory@517f9ba3
elAdmin- 2020-09-08 14:37:44 [main] INFO org.quartz.core.QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED started.
elAdmin- 2020-09-08 14:37:45 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderRecordController' defined in file [/Users/krxxxx/IdeaProjects/eladmin/eladmin-system/target/classes/me/zhengjie/modules/system/rest/OrderRecordController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xxxx.service.OrderRecordService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
elAdmin- 2020-09-08 14:37:45 [main] INFO org.quartz.core.QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED shutting down.
elAdmin- 2020-09-08 14:37:45 [main] INFO org.quartz.core.QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED paused.
elAdmin- 2020-09-08 14:37:45 [main] INFO org.quartz.core.QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED shutdown complete.
elAdmin- 2020-09-08 14:37:45 [main] INFO o.s.o.j.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
elAdmin- 2020-09-08 14:37:45 [main] INFO c.alibaba.druid.pool.DruidDataSource - {dataSource-1} closing ...
elAdmin- 2020-09-08 14:37:45 [main] INFO c.alibaba.druid.pool.DruidDataSource - {dataSource-1} closed
elAdmin- 2020-09-08 14:37:45 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
elAdmin- 2020-09-08 14:37:45 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
elAdmin- 2020-09-08 14:37:45 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in me.zhengjie.modules.system.rest.OrderRecordController required a bean of type 'com.xxxx.service.OrderRecordService' that could not be found.
Action:
Consider defining a bean of type 'com.xxxx.service.OrderRecordService' in your configuration.
Disconnected from the target VM, address: '127.0.0.1:49154', transport: 'socket'
Process finished with exit code 1
新建模块 不同包名 依赖注入失败 版本: v2.5 环境:本地 复现步骤: 新建maven eladmin-bengbu模块
创建 生成模块 包名为com.xxxx 请求一直提示404 后把OrderRecordController模块移动至system模块下 system引入maven
OrderRecordController代码
日志提供:
请问 依赖注入是在哪配置的 为什么会找不到呢 编译 没有问题 启动失败