问题描述:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field schedulingService in cu.fish.curriculum.controller.ExamScheduleController required a bean of type 'cu.fish.curriculum.service.ExamSchedulingService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'cu.fish.curriculum.service.ExamSchedulingService' in your configuration.
Process finished with exit code 1
原因:
该错误表明 Spring 容器无法创建 ExamSchedulingService 的 Bean,导致依赖注入失败
解决方法:
ExamSchedulingService 接口或实现类未添加 Spring 注解(如 @Service)