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