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

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.

原因 配置错误
修改位置:
解决办法 Field userService in com.sxsj.controller.RegistLoginController required a bean of type
文章图片

【解决办法 Field userService in com.sxsj.controller.RegistLoginController required a bean of type】修改完成

    推荐阅读