在用springBoot做开发的启动项目的时候出现如下异常:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field commentDao in com.eleven.house.biz.UserService required a bean of type 'com.eleven.house.biz.UserService' that could not be found.
Action:
Consider defining a bean of type 'com.eleven.house.biz.UserService in your configuration.

所遇到的bug如图,困扰了许久。
原因如下:

网上一些其他解决方案,也都试过,但是并没有解决我的问题,这里给一个链接,希望有所帮助:
其它解决办法
本文详细解析了在使用SpringBoot进行项目开发时遇到的启动异常问题,具体表现为UserService类型bean未找到导致的ApplicationFailedToStart错误。文章深入探讨了异常产生的根本原因,并提供了解决方案,建议在配置中定义相应的UserService bean。
2299

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



