启动springboot项目APPLICATION FAILED TO START

启动springboot项目APPLICATION FAILED TO START,第1张

启动springboot项目APPLICATION FAILED TO START 异常信息1
2022-01-02 20:03:33,821 ERROR LoggingFailureAnalysisReporter - 

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 2 of constructor in com.rus.service.impl.MoveServiceImpl required a bean of type 'com.rus.entity.MoveRntity' that could not be found.


Action:

Consider defining a bean of type 'com.rus.entity.MoveRntity' in your configuration.
解决方案

entity中确实无参构造方法

异常信息2
***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.rus.service.impl.MoveServiceImpl required a bean of type 'java.lang.String' that could not be found.


Action:

Consider defining a bean of type 'java.lang.String' in your configuration.
解决方案

由于MoveServiceImpl是一个共同的基类
不能添加@service注解

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/zaji/5695369.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-17
下一篇2022-12-17

发表评论

登录后才能评论

评论列表(0条)

    保存