IDE 没有报错, 郁闷

来源:2-8 搭建数据库与持久层框架(二)

慕沐4568336

2022-02-11

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2022-02-10 22:05:17.456 ERROR 21876 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Field demoService in com.huang.bilibili4.api.DemoApi required a bean of type ‘com.huang.bilibili4.service.DemoService’ 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.huang.bilibili4.service.DemoService’ in your configuration.

Disconnected from the target VM, address: ‘127.0.0.1:50515’, transport: ‘socket’

Process finished with exit code 1
IDE 没有报错, 郁闷

写回答

2回答

qq_灬差不多先生_0

2022-02-17

没有加service注解吧,ioc库检测不到

0
1
慕沐4568336
非常感谢!
2022-06-17
共1条回复

慕哥8534701

2022-04-29

解决了吗我也这样耶

0
0

SpringBoot 2.x 实战仿B站高性能后端项目

还原高性能项目开发全流程,掌握视频业务核心功能与技术

755 学习 · 190 问题

查看课程