首页>代码>springboot+vue实现CRUD、分页及条件查询>/springboot_crud/src/main/java/com/gs/controller/BookController2.java
//package com.gs.controller; // //import com.baomidou.mybatisplus.core.metadata.IPage; //import com.gs.domain.Book; //import com.gs.service.IBookService; //import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.web.bind.annotation.*; // //import java.util.List; // //@RestController //@RequestMapping("/books") //public class BookController2 { // @Autowired // private IBookService bookService; // // @GetMapping // public List<Book> getAll(){ // return bookService.list(); // } // // @PostMapping // public Boolean save(@RequestBody Book book){ // return bookService.save(book); // } // // @PutMapping // public Boolean update(@RequestBody Book book){ //// bookService.updateById(book); // return bookService.modify(book); // } // // @DeleteMapping("{id}") // public Boolean delete(@PathVariable Integer id){ // return bookService.delete(id); // } // // @GetMapping("{id}") // public Book getById(@PathVariable Integer id){ // return bookService.getById(id); // } // // @GetMapping("{currentPage}/{pageSize}") // public IPage<Book> getPage(@PathVariable int currentPage,@PathVariable int pageSize){ // return bookService.getPage(currentPage,pageSize); // } // // //}

15719908287 LV9
2024年11月6日
sgm123456 LV13
2024年10月23日
币圈老大 LV17
2024年7月24日
ZthuaL LV2
2024年6月21日
不想起 LV10
2024年4月22日
welcome丶 LV8
2024年3月7日
微信网友_6829521472425984 LV5
2024年1月20日
oulingqiao LV13
2024年1月11日
廖业贵 LV18
2023年11月16日
微信网友_6580000030609408 LV2
2023年7月27日

qinzhifang LV1
3月15日
13188140406
3月12日
暂无贡献等级
sgm123456 LV13
2024年10月23日
15719908287 LV9
2024年9月11日
币圈老大 LV17
2024年7月24日
ZthuaL LV2
2024年6月21日
2775645521 LV7
2024年6月16日
chirsbey2
2024年5月30日
暂无贡献等级
做自己的太阳 LV11
2024年4月19日
welcome丶 LV8
2024年3月7日