一、报错提示

1.No MyBatis mapper was found in '[com.iyungu.phantaci]' package. Please check your configuration.

2.SpringBoot之项目启动提示扫描不到Mapper文件

二、解决方式

在springboot的启动类里加注解:@MapperScan("com.iyungu.phantaci.dao"),括号里的是Mapper接口所在路径。加上注解后,重启项目,正常。

附上demo项目的目录截图:

SpringBoot之项目启动提示扫描不到Mapper文件


相关文章:

  • 2022-01-06
  • 2021-07-30
  • 2021-11-25
  • 2022-01-09
  • 2021-08-25
  • 2021-11-14
  • 2021-10-23
  • 2021-08-10
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案