springboot maven mybatis-plus 在连接数据库easycode生成那四层之后,项目就启动报错

7、springboot maven mybatis-plus 在连接数据库easycode生成那四层之后,项目就启动不了了。我太南了,后来采集四处找方法,我找到了:

报错:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘admininfoController’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘admininfoService’: Unsatisfied dependency expressed through field ‘baseMapper’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.zlx.meetingback.admin.dao.AdmininfoDao’ available: expected at least 1 bean which qualifies as autowire 。。。。

方法,启动项加:注解MapperScan,扫描你的dao层

springboot maven mybatis-plus 在连接数据库easycode生成那四层之后,项目就启动报错_第1张图片

具体原因见:
http://m.bubuko.com/infodetail-3304101.html

你可能感兴趣的:(Javaweb,javaweb)