一. jwt实现过程 1 用户提交用户名和密码给服务端,如果登录成功,使用jwt创建一个token,并给用户返回 eyJ0eXAiOiJqd3QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6InpjYyIsImV4cCI6MTU5NDcz ...
分类:
其他好文 时间:
2021-01-13 11:27:50
阅读次数:
0
//第一种 public static void main(String[] args) throws Exception { // 1.下载地址 URL url = new URL("需要下载的文件地址例如:https://tse2-mm.cn.bing.net/th/id/OIP.V0bcfKT ...
分类:
编程语言 时间:
2021-01-13 11:19:10
阅读次数:
0
SELECT * FROM carregisterinfo a WHERE (a.plate) IN ( SELECT plate FROM carregisterinfo GROUP BY plate HAVING count(*) >= 1 ) AND id IN ( SELECT max(id ...
分类:
数据库 时间:
2021-01-13 11:17:42
阅读次数:
0
会员管理页面接口调通 现在来开发我们的会员管理页面,我们获取会员数据的接口格式如下 { "code": "2001", "success": true, "msg": "", "total": 78, "data": [ { "id": 30, "update_time": "2020-06-11 ...
分类:
Web程序 时间:
2021-01-13 11:14:25
阅读次数:
0
1.怎么停止一个正在运行的springboot项目ps -ef | grep tomcatkill -9 进程id 杀掉进程2.查看本机某个端口是否监听:netstat -anlp | grep 88883.直接回到根目录 cd /4.tar -xvf dist.tar //解压 tar包解压到一个 ...
分类:
系统相关 时间:
2021-01-13 11:12:00
阅读次数:
0
需求: 1.需要往数据库插入批量数据,且数据需要随机,带有日期格式的数据。 2.查看目的接收表,存在唯一key,字段2是日期格式。其他数据可以一样。 首先需要写一个链接数据库的函数:import MySQLdb class MySql(): def __init__(self, db): self. ...
分类:
数据库 时间:
2021-01-13 10:54:27
阅读次数:
0
工作中有一张类型信息表,有时候需要不同的类型信息需要多次扫描这张表,表很大的时候影响效率。 优化前: select t1.fa_id,t2.srch_char_val,t3.srch_char_val from (select fa_id from cisadm_ods.ods_cis_ci_fa_ ...
分类:
其他好文 时间:
2021-01-13 10:40:03
阅读次数:
0
记录几个坑 优化器在表行数比较少的时候 会使用全表扫描,会造成全表所有的行加锁,所以需要使用force index 强制使用索引 来实现gap-lock(间隙锁)的应用 next-lock 加锁 会锁住 第一个不满足条件行 例如下表 number有唯一索引 id name number 1 Jack ...
分类:
数据库 时间:
2021-01-12 11:15:53
阅读次数:
0
Ubuntu 18.04 (Bionic) 安装 MongoDB (Install MongoDB Community Edition on Ubuntu) 查看 Ubuntu 版本 lsb_release -a Distributor ID: Ubuntu Description: Ubuntu ...
分类:
数据库 时间:
2021-01-12 11:08:09
阅读次数:
0
管理员用户表(id,password)表名:admin 雇员密码表 employ 雇员信息表employee 工会会费表affiliation 银行卡支付 工会id 时薪表 支票支付表 固定工资表 销售凭证 会费缴费 工时卡 销售员工工资表 ...
分类:
数据库 时间:
2021-01-12 11:07:03
阅读次数:
0