1.项目整体效果如下:

2.数据库设计:
表一:

表二:

3.搭建项目

查询所有账单接口

查询所有账单的实现类


前段控制器
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.alibaba.dubbo.config.annotation.Reference;
import com.sxt.service.IBillsService;
import com.sxt.utils.DataGridView;
import com.sxt.vo.BillsVo;
/**
-
-
前端控制器
-
@author DPF
-
@since 2019-09-04
*/
@Controller
@RequestMapping("/bills")
public class BillsController {@Reference
private IBillsService billService;/**
- 跳转到页面
*/
@RequestMapping(“toIndex”)
public String toIndex() {
return “index”;
}
/**
-
<
- 跳转到页面

本文介绍了使用Springboot、MybatisPlus和layui构建的一个简易记账管理项目的实现。包括数据库设计、查询接口的实现以及前端控制器的代码展示,实现了账单的查询、添加功能,并提供了账单类型的查询。
最低0.47元/天 解锁文章
325





