知行合一

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页

2021年3月7日 #

摘要: 一、购物车的存储形式 1、cookie存放数据 无须登录、无须查库、保存在浏览器端 优点:性能好、访问快、没有和数据库交互。 缺点1:换浏览器购物车数据会丢失。 缺点2:电脑被他人使用,存在隐私安全。 2、session存放数据 用户登录后,购物车数据放入用户会话 优点:初期性能较好、访问快。 缺点 阅读全文
posted @ 2021-03-07 21:23 callbin 阅读(1936) 评论(0) 推荐(0) 编辑

摘要: 一、数据表设计 create table `foodie-shop-dev`.user_address ( id varchar(64) not null comment '地址主键id' primary key, user_id varchar(64) not null comment '关联用户 阅读全文
posted @ 2021-03-07 21:03 callbin 阅读(2028) 评论(0) 推荐(0) 编辑

摘要: 一、复杂订单状态设计 二、订单表设计 订单的每个状态更改都需要进行记录10:待付款 20:已付款,待发货 30:已发货,待收货(7天自动确认) 40:交易成功(此时可以评价)50:交易关闭(待付款时,用户取消 或 长时间未付款,系统识别后自动关闭)退货/退货,此分支流程不做,所以不加入 阅读全文
posted @ 2021-03-07 20:16 callbin 阅读(251) 评论(0) 推荐(0) 编辑

2021年3月6日 #

摘要: 一、数据表结构 create table `foodie-shop-dev`.items ( id varchar(64) not null comment '商品主键id' primary key, item_name varchar(32) not null comment '商品名称 商品名称 阅读全文
posted @ 2021-03-06 10:04 callbin 阅读(951) 评论(0) 推荐(0) 编辑

摘要: 一、脱敏工具类 package com.imooc.utils; import sun.applet.Main; /** * 通用脱敏工具类 * 可用于: * 用户名 * 手机号 * 邮箱 * 地址等 */ public class DesensitizationUtil { private sta 阅读全文
posted @ 2021-03-06 06:22 callbin 阅读(262) 评论(0) 推荐(0) 编辑

摘要: 一、SpringBoot 整合 mybatis-pagehelper 1.引入分页插件依赖 <!--pagehelper --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-b 阅读全文
posted @ 2021-03-06 00:12 callbin 阅读(181) 评论(0) 推荐(0) 编辑

2021年3月5日 #

摘要: 一、数据库结构 create table `foodie-shop-dev`.items_comments ( id varchar(64) not null comment 'id主键' primary key, user_id varchar(64) null comment '用户id 用户名 阅读全文
posted @ 2021-03-05 22:13 callbin 阅读(183) 评论(0) 推荐(0) 编辑

摘要: 一、数据库结构 create table `foodie-shop-dev`.items ( id varchar(64) not null comment '商品主键id' primary key, item_name varchar(32) not null comment '商品名称 商品名称 阅读全文
posted @ 2021-03-05 20:23 callbin 阅读(240) 评论(0) 推荐(0) 编辑

摘要: 功能:查询每个一级分类的最新6条商品数据一、数据库表结构 create table `foodie-shop-dev`.category ( id int auto_increment comment '主键' primary key, name varchar(32) not null comme 阅读全文
posted @ 2021-03-05 18:26 callbin 阅读(965) 评论(0) 推荐(0) 编辑

2021年3月4日 #

摘要: 跨域 产生跨域问题的罪魁祸首是浏览器同源策略,当协议、子域名、主域名、端口号中任意一个不相同时,都算作不同域,不同域之间的网络请求就会触发跨域问题。跨域并不是请求发不出去,请求能发出去,服务端能收到请求并正常返回结果,只是结果被浏览器拦截了。 解决方法 前后台分离模式目前主流解决方案有三种: web 阅读全文
posted @ 2021-03-04 21:50 callbin 阅读(2857) 评论(0) 推荐(0) 编辑

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页