学习笔录-SPRING BOOT

spring boot 启动的时候required a bean of type 'XXX' that could not be

Field mapper in com.demo.service.impl.UserServiceImpl required a bean of type 'com.kaigejava.kgblog.dao.UserDao' that could not be found.

Description:
Field mapper in com.kaigejava.kgblog,service.impl.UserServiceImpl required a bean of type 'com.kaigejava.kgblog.dao.UserDao' that could not be found.
Action:
Consider defining a bean of type 'com.kaigejava.kgblog.dao.UserDao' in your configuration.


SpringBoot启动失败,告诉我Bean配置失败,楼主看了看  该用的注解都用上了  这是咋的回事嘞?

先看错误的:

//@Component
@Repository
publi

原创不易,完成人机校验,阅读全文

相关推荐