随笔分类 -  练手项目全教程

git使用基础教程
2022-8-26 每日一题-最大的两个数-
摘要:1464. 数组中两元素的最大乘积 难度简单53收藏分享切换为英文接收动态反馈 给你一个整数数组 nums,请你选择数组的两个不同下标 i 和 j,使 (nums[i]-1)*(nums[j]-1) 取得最大值。 请你计算并返回该式的最大值。 1 class Solution { 2 public 阅读全文

posted @ 2022-08-26 22:13 阿ming 阅读(34) 评论(0) 推荐(0)

windows系统 整合redis,elasticsearch 以及elasticsearch-head
摘要:Redis 在官网下载Redis-x64-5.0.14.zip,并解压。在Redis目录下打开命令行,输入以下指令。 redis-server.exe redis.windows.conf ,如果提示不可执行就输入 .\redis-server.exe redis.windows.conf。 显示这 阅读全文

posted @ 2022-03-04 12:43 阿ming 阅读(76) 评论(0) 推荐(0)

前端页面
摘要:前端页面 报销申请 添加报销记录 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta charset="u 阅读全文

posted @ 2022-01-10 17:14 阿ming 阅读(291) 评论(0) 推荐(0)

控制层编写
摘要:控制层编写 报销申请控制层 package com.cao.frs.controller; ​ import cn.hutool.core.bean.BeanUtil; import com.cao.frs.entities.Invoice; import com.cao.frs.entities. 阅读全文

posted @ 2022-01-09 16:15 阿ming 阅读(67) 评论(0) 推荐(0)

与前段网页结合
摘要:与前端结合 登陆界面 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta charset="utf-8"> 阅读全文

posted @ 2022-01-08 15:05 阿ming 阅读(176) 评论(0) 推荐(0)

测试DAO接口以及服务层编写
摘要:测试Dao接口是否有问题 利用测试类来看dao层是否有问题,分别用三个测试方法测试三个dao接口。 测试类如下: package com.cao.frs; ​ import com.cao.frs.dao.InvoiceMapper; import com.cao.frs.dao.Reimburse 阅读全文

posted @ 2022-01-07 17:19 阿ming 阅读(131) 评论(0) 推荐(0)

编写Dao层
摘要:编写Dao层 dao层即调用数据库层 先编写Dao接口 用户表Dao接口UserMapper package com.cao.frs.dao; import com.cao.frs.entities.Users; import org.apache.ibatis.annotations.Mapper 阅读全文

posted @ 2022-01-05 17:23 阿ming 阅读(233) 评论(0) 推荐(0)

构建用户实体类
摘要:构建用户实体类 用户实体类 package com.cao.frs.entities; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllA 阅读全文

posted @ 2022-01-03 14:46 阿ming 阅读(180) 评论(0) 推荐(0)

整合Swagger
摘要:整合Swagger 依赖导入 <!-- 使用swagger --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.7.0</version> </ 阅读全文

posted @ 2022-01-02 19:22 阿ming 阅读(57) 评论(0) 推荐(0)

新建springboot项目
摘要:新建一个spring项目 配置文件 新建一个application.yml文件。 # 数据库配置 spring: datasource: url: jdbc:mysql://localhost:3306/frs?characterEncoding=utf-8 username: root passw 阅读全文

posted @ 2022-01-01 21:38 阿ming 阅读(81) 评论(0) 推荐(0)

数据库搭建
摘要:数据库搭建 1.财务报账管理系统功能:不同的人登陆该系统可以报账,增删改差报销记录。 2.搭建数据库。 首先建立用户表,登陆用户名username,登陆密码password,主键id,城市city,生日birthday,手机phone,电子邮箱email,是否为管理员is_admin,职位或者昵称n 阅读全文

posted @ 2021-12-29 15:05 阿ming 阅读(304) 评论(0) 推荐(0)

git使用方法
摘要:Git使用方法 1.先安装git,然后设置用户名和邮箱。 git config --global user.name "caijicao721" git config --global user.email "17621778372@163.com" 注意:git config --global 参 阅读全文

posted @ 2021-12-10 19:30 阿ming 阅读(159) 评论(0) 推荐(0)

导航