启动 SpringBoot项目报错:
*************************** APPLICATION FAILED TO START *************************** Description: Field adminRoleRelationDao in com.macro.mall.tiny.service.impl.UmsAdminServiceImpl required a bean of type 'com.macro.mall.tiny.dao.UmsAdminRoleRelationDao' that could not be found. The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true) Action: Consider defining a bean of type 'com.macro.mall.tiny.dao.UmsAdminRoleRelationDao' in your configuration.
报错原因:
项目未扫描到 dao 包
解决办法:
在主启动类上加上:@ComponentScan(basePackages = {“com.XX.dao”}) 你的项目的dao层包路径,如下:
@ComponentScan(basePackages = {"com.xx.dao"})//引入dao根路径 //@MapperScan("com.macro.mall.tiny.mbg.mapper") @SpringBootApplication public class MallApplication { public static void main(String[] args) { SpringApplication.run(MallApplication.class, args); } }
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/MinggeQingchun/article/details/111246345
一、TCP三次握手1.1简介 按层次分,TCP位于传输层,提供可靠的字节流服务。 所谓的字节流服务(ByteStreamService...
胖大xian
2021-01-21
阅读(273)
简单的单向链表模拟先写一个节点类NodepublicclassNode{Objectdate;//存储的数据Nodenext;//下一个节点地址publicNode(){//无参数构造方法}publi...
天羽@
2021-01-21
阅读(263)
C语言环境配置和vsc一:安装MinGW-w64编译器套件1.1下载安装本文提到的MinGW-w64是一个著名项目为Windows64位平台提供的一套编译器,它也受到了微软...
jomes_wang
2021-01-21
阅读(596)
0.Kafka源码包下载https://archive.apache.org/dist/kafka1.集群环境Master172.16.11.97Slave1172.16.11.98Slave2172...
大家来一起学
2021-01-21
阅读(768)
Http代理okhttp中的代理与路由OkHttp3中的代理与路由http://www.voidcn.com/article/p-ptwnoubo-bom.html深入理解OkHttp3(...
跑步_跑步
2021-01-21
阅读(869)
HTML//1.超链接标签1.1用法<ahref="跳转目标"target="目标窗口的弹出方式">文本或图像</a>1.2指定...
い陌浔
2021-01-21
阅读(293)
RNN(thestudentopenedtheir______)其结构与函数表达式:优势有:可以有任意长度的输入;t步的计算理论上...
polaris2ai
2021-01-21
阅读(352)
运行时数据区Java虚拟机在执行Java程序的过程中,会把所有它管理的内存划分为若干个不同的数据区域。这些区域都有各自的用途。备注:有些人也会称为Java虚拟机内存模型...
门徒Cat
2021-01-21
阅读(498)
RKandroid平台arm编译器的位置 一、64位的rk3399ARM编译器的位置。 1、在kernel/Makefile文件里面CROSS_COMPILE指定编译器位置。 ...
海月汐辰
2021-01-21
阅读(987)
1.开发板光盘下载http://www.arm9home.net/read.php?tid-10908.html2.烧写笔记...
世界非世界,是名世界!
2021-01-21
阅读(509)