一个简单的springboot项目
所以决定记录一下
postman测试CRUD的结果图
postman测试数据
新增
http://localhost:8080/user/add
{
"username":"姓名02",
"password":"7802",
"address":"20220729"
}
修改
http://localhost:8080/user/update
{
"id":"fc8f671db3514bf38b6ce10f8807ef89",
"username":"66",
"password":"667",
"address":"6678"
}
删除
http://localhost:8080/user/delete
{
"id":"c4b9acb1a5fc4955b4b1fb003184168c"
}
查询
http://localhost:8080/user/selectUserByid
{
"id":"fc8f671db3514bf38b6ce10f8807ef89"
}
后端代码结构图