
关于报错Consider defining a bean of type “*,*,*,***Mapper” in your configuration的解决
运行springboot项目报错 Consider defining a bean of type 'com.invitop.work.dao.AdminUserMapper' in your configuration.
报错原因为配置中找不到一个指定自动注入类型的bean。
查看几个地方
1、service实现类是否添加了@service
2、service实现类是否有implements service
3、SpringBootApplication启动类里面,是否给定了bean的路径
👁️ 阅读量:0
© 版权声明:本文《关于报错Consider defining a bean of type “*,*,*,***Mapper” in your configuration的解决》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686557153a291356.html。