SpringBoot_Vue实现简易图书管理

1.技术介绍
SpringBoot+mysql+Vue
开发工具:eclipse或IDEA
2.主要功能说明:
用户注册、登录、新增图书、编辑图书、图书列表搜索、删除图书、图书分类
3.部分代码展示

```java
@Slf4j
@CrossOrigin
@RestController
@RequestMapping("/book")
public class BookController {
@Autowired
BookService bookService;

@GetMapping("/get")
public ResultVO getAll() {
return bookService.getAll();
}

@GetMapping("/getClass")
public ResultVO getClasss(String Class) {
return bookService.getClass(Class);
}

@PostMapping("/insert")
public ResultVO insertBook(@Validated @RequestBody BookEntity bookEntity){
return CommonUtil.ajaxReturn(bookService.insertBook(bookEntity));
}
@PostMapping("/delete")
public ResultVO deleteBook(@Validated @RequestBody BookEntity bookEntity){
return CommonUtil.ajaxReturn(bookService.deleteBook(bookEntity));
}
@PostMapping("/update")
public ResultVO updateBook(@Validated @RequestBody BookEntity bookEntity){
return CommonUtil.ajaxReturn(bookService.updateBook(bookEntity));
}
```
4.系统演示地址:
链接:https://pan.baidu.com/s/1D6MrM0SsR8qCnMLV37zhVw
提取码:vcn1

posted @ 2022-06-28 22:43  小草1234  阅读(192)  评论(0编辑  收藏  举报