SpringBoot第四篇常见问题

一、集成mybatis, Invalid bound statement (not found): com.example.spring1030001.Services.DemoService.getUser

1、检查mapper.xml文件地址是否对了

2、xml文件 的方法和接口的方法是否一致

3、最后检查application.yml的配置文件位置是否对了,我的就是多打了空格找了半天

4、application启动是否扫描接口所在的包

二、Maven自动更新打开,ideal操作步骤,保存后自动下载依赖包

原文地址:https://www.cnblogs.com/topguntopgun/p/15488131.html