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注解
博客介绍了解决问题的办法,即在StudentSer类的实现类StudentImp上添加@Service注解,这属于后端开发中Spring框架相关的操作。

被折叠的 条评论
为什么被折叠?



