摘要:
后端登陆的过滤器 package com.itheima.filter; import com.google.gson.Gson; import com.google.gson.JsonObject; import com.itheima.pojo.Result; import com.itheim 阅读全文
摘要:
设置请求拦截和拦截响应 // 创建axios实例并设置公共的baseURL const axiosInstance = axios.create({ baseURL: 'http://localhost:8080', }); // 设置请求拦截器(对于所有通过axiosInstance发起的请求都有 阅读全文
摘要:
jwt生成 /* jwt令牌的生成 */ @Test public void testGenjwt(){ Map<String,Object> claims=new HashMap<>(); claims.put("id",1); claims.put("name","tom"); String j 阅读全文
摘要:
@Slf4j @RestController @CrossOrigin public class LoginController { @GetMapping("/c1") public Result cookie1(HttpSession session){ session.setAttribute 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="axios.js"></script> </head> <style> body { background 阅读全文
摘要:
@Slf4j @RestController @CrossOrigin public class LoginController { @GetMapping("/c1") public Result cookie1(HttpServletResponse response){ response.ad 阅读全文
摘要:
用滚轮实现文字的适应 <!DOCTYPE html> <html> <head> <title>页面标题</title> <style> #model{ width:30%; height:300px; overflow-y:scroll; background:yellow; } ::-webki 阅读全文
摘要:
滚轮滑动鼠标不动进入某个位置会触发mouseover鼠标移动会触发mouseenter 阅读全文
摘要:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 阅读全文
摘要:
JSON格式,(简写JavaScript Object Notation),是一种用于数据交换的文本格式,书写简单。 基于JavaScript原生语法,能够序列化对象、数组、数值、字符串、布尔值和 null。 在ES5中,增加了一个JSON对象,专门用来处理JSON格式的数据。 JSON是一个对象, 阅读全文