@GetMapping
public List<menu> findAll() {
return userService.list();
}
public class UserService extends ServiceImpl<UserMapper, menu> {
public boolean savemenu(menu menu) {
// if(menu.getDishID() == null){
// save = (menu);//mybatis-plus提供的方法,表示插入数据
// }else{
// return updateBatchById(menu);
// }
return saveOrUpdate(menu);
}
调用lis()方法时,springboot报错:2023-12-24 13:41:17.453 ERROR 18588 --- [nio-9091-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: