expressed专题

mabatisplus报错 Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.s

啊,这个错烦我很久了,因为在百度的答案不太符合,我是参考了一些成功的项目:网上好些搭建mybatisplus没有写这个依赖,可能最近几个月版本更新迭代,快2020年了,所需要的依赖版本过高,必须加上这个依赖 <dependency><groupId>com.baomidou</groupId><artifactId>mybatisplus-spring-boot-starter</artif

Unsatisfied dependency expressed through field ‘baseMapper‘; nested exception is org.springframewor

在springboot启动类上加上dao或者mapper @MapperScan("com.zhao.blog.mapper") 然后就正常启动

Unsatisfied dependency expressed through bean property ‘sqlSessionTemplate‘;

代码没有问题,但是启动运行报错 2023-10-25 16:59:38.165 INFO 228964 --- [ main] c.h.h.HailiaowenanApplication : Starting HailiaowenanApplication on ganluhua with PID 228964 (D:\ganluhua\code\j