Loading

08 2021 档案

摘要:引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> 声明Spring Boot需要用Web 阅读全文
posted @ 2021-08-14 23:06 Standing-Stone 阅读(71) 评论(0) 推荐(0)
摘要:大致流程 登录 前端输入用户名密码 后端校验用户名密码是否正确 生成token 后端在redis中保存token,{token:UserLoginResp} 前端保存token 校验 前端请求时,在header中带上token 后端拦截器,从header中获取token并与redis中存储的进行校验 阅读全文
posted @ 2021-08-13 11:43 Standing-Stone 阅读(480) 评论(0) 推荐(0)
摘要:export class Tool { /** * 空校验 null或""都返回true */ public static isEmpty (obj: any) { if ((typeof obj 'string')) { return !obj || obj.replace(/\s+/g, "") 阅读全文
posted @ 2021-08-09 10:49 Standing-Stone 阅读(294) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?> <configuration> <contextName>wiki</contextName> <!-- 日志文件存放的路径【可替换】 --> <property name="LOG_PATH" value="D:/wor 阅读全文
posted @ 2021-08-09 09:54 Standing-Stone 阅读(161) 评论(0) 推荐(0)