Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request

报错: 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.pat.patience.mapper.patMapper.getByStudentName] with root cause

原因: 缺少启动类的包扫描注解

@MapperScan(basePackages = "com.pat.patience.mapper")

你可能感兴趣的:(servlet)