解决办法 Field userService in com.sxsj.controller.RegistLoginController required a bean of type

转自:https://blog.csdn.net/awmw74520/article/details/82687288

APPLICATION FAILED TO START

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-09-01 19:16:54,375 [main] [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter.report(LoggingFailureAnalysisReporter.java:42)] - [ERROR]

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

Description:

Field userService in com.sxsj.controller.RegistLoginController required a bean of type 'com.sxsj.service.UserService' that could not be found.

Action:

Consider defining a bean of type 'com.sxsj.service.UserService' in your configuration.

原因 配置错误

修改位置:

修改完成
---------------------
作者:傲宇苍穹
来源:CSDN
原文:https://blog.csdn.net/qq_41247433/article/details/82289924
版权声明:本文为博主原创文章,转载请附上博文链接!

上一篇:偶值得纪念的一天-初学习C#


下一篇:Spring Cloud Ribbon负载均衡配置类放在Spring boot主类同级增加Exclude过滤后报Field config in com.cloud.web.controller.RibbonConfiguration required a bean of type 'com.netflix.client.config.IClientConfig' that could not b