Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2024-03-01T01:40:29.810+08:00 ERROR 18116 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Field studentSer in com.teaching.controller.TestController required a bean of type 'com.teaching.service.student.StudentSer' 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 'com.teaching.service.student.StudentSer' in your configuration.
解决办法,在StudentSer类的实现类StudentImp上面添加@Service注解