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回答
-
没有加service注解吧,ioc库检测不到
012022-06-17 -
慕哥8534701
2022-04-29
解决了吗我也这样耶
00
相似问题