解决办法 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】修改完成
推荐阅读
- parallels|parallels desktop 解决网络初始化失败问题
- 考研英语阅读终极解决方案——阅读理解如何巧拿高分
- MybatisPlus|MybatisPlus LambdaQueryWrapper使用int默认值的坑及解决
- SpringBoot调用公共模块的自定义注解失效的解决
- 解决SpringBoot引用别的模块无法注入的问题
- Spark|Spark 数据倾斜及其解决方案
- 解决SyntaxError:|解决SyntaxError: invalid syntax
- Spectrum|Spectrum 区块偶尔停止同步问题排查与解决笔记
- 一劳永逸地解决词汇量不够的问题
- Hexo代码块前后空白行问题