SpingBoot+Mybaits+Vue,更新学习

时间:2023-03-09 15:44:49
SpingBoot+Mybaits+Vue,更新学习

1.DTO

SpingBoot+Mybaits+Vue,更新学习

2.实体类

SpingBoot+Mybaits+Vue,更新学习

3.Controller层,UpdatePrize/{id}为接口

SpingBoot+Mybaits+Vue,更新学习

4.Service层

SpingBoot+Mybaits+Vue,更新学习

5.Impl实现层

SpingBoot+Mybaits+Vue,更新学习

之后就可以更新数据了。

6.Vue链接接口

SpingBoot+Mybaits+Vue,更新学习

7.请求,解析,返回值

SpingBoot+Mybaits+Vue,更新学习

8.init方法,初始化使用
SpingBoot+Mybaits+Vue,更新学习

增删查与更相仿,只是实现层方法不同
增加实现层中的方法为insertSelective。
删除实现层中的方法为deleteByPrimaryKey。
查询实现层中的方法为selectByExample。
更新实现层中的方法为updateByPrimaryKeySelective。
 

 本人原创,如有转载请注明出处,有些不详细地方欢迎留言,有不对地方欢迎指正