报错信息截取:

Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean 

解决办法:springboot启动类上加 @MapperScan();注解,如下

@SpringBootApplication
@MapperScan(value = "com.xxxxx.xxxx.mapper")
public class ManagesysApplication {

:网上还有一种写法:就是在mapper接口上添加@Mapper注解,然而这种写法并不能解决扫包不全的问题。用上面的做法,指定扫描路径即可。

相关文章:

  • 2021-11-07
  • 2021-03-30
  • 2022-12-23
  • 2021-11-07
  • 2021-11-02
  • 2021-08-02
  • 2021-08-12
  • 2022-12-23
猜你喜欢
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-10-31
  • 2022-02-20
  • 2022-03-02
相关资源
相似解决方案