ERROR:
2022-12-06 19:26:30.260 ERROR 23376 --- [nio-8080-exec-1]o.a.c.c.C.[.[.[/].[dispatcherServlet]:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.mybatis.mapper.UserMapper.Sel] with root cause
输出:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.mybatis.mapper.UserMapper.Sel
解决方法:
mapper文件名必须一样,如图
修改后启动程序,再用postman测试