中小型toB 应用实现系列 - 导航
方案
- 以 toB 应用设计系列 - 会话篇 为蓝本
- 采取 spring session 的方案, 客户端存储在 cookie 中, cookie 设置 httponly
表结构
drop table if exists user;
create table if not exists user
(
id varchar(20) not null comment '主键id',
no varchar(20) not null comment '编码',
name varchar(20) not null comment '名称',
password varchar(100) not null default '' comment '密码',
registered_time datetime(3) not null comment '注册时间',
create_time datetime(3) not null comment '',
update_time datetime(3) not null comment '',
constraint pk_id primary key (id),
unique key uk_no (no)
)comment='用户表' engine=InnoDB;