首页>代码>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); // } // // //}
最近下载更多
不想起 LV10
4月22日
welcome丶 LV8
3月7日
微信网友_6829521472425984 LV5
1月20日
oulingqiao LV13
1月11日
廖业贵 LV18
2023年11月16日
微信网友_6580000030609408 LV2
2023年7月27日
ericxu1116 LV24
2023年6月14日
iceboard LV2
2023年6月4日
syczzxj LV9
2023年5月30日
陈小灏 LV14
2023年5月24日
最近浏览更多
做自己的太阳 LV11
4月19日
welcome丶 LV8
3月7日
微信网友_6829521472425984 LV5
1月20日
胡晓阳 LV2
1月17日
oulingqiao LV13
1月11日
微信网友_5875354018615296
2023年12月20日
暂无贡献等级
lbszxc LV2
2023年11月30日
廖业贵 LV18
2023年11月8日
jiemomo LV12
2023年10月19日
lianzhuoran LV1
2023年8月29日