0016 常见错误com.example.adminspringboot.mapper.UserMapper.update

错误截图

 

 在使用mybatis中容易出现

解决方法:

在配置文件中加上路径

书写:

mybatis:
  mapper-locations: classpath:mapper/*.xml #扫描所有mapper下的xml文件

 

posted on 2022-12-30 10:19  zzq156  阅读(40)  评论(0编辑  收藏  举报