springboot
akko_
点赞关注不迷路~
展开
-
SpringBoot整合mybatis-plus全流程
https://www.jianshu.com/p/0e39b41ce728转载 2021-08-26 16:50:48 · 111 阅读 · 0 评论 -
JQuery ajax请求springboot接口登录
//前端$.ajax({ type:"post", url:"http://localhost:8080/login", //将json对象转化为json字符串 data:JSON.stringify({'username':'akko','password':'123456'}), //规定发送数据流类型 json contentType:"applicatio原创 2020-12-05 00:48:40 · 709 阅读 · 0 评论 -
springBoot shiro 登录过程解析(学习笔记)
后端springboot 处理登录请求LoginController中拿到前端的请求体 通过fastjson将json对象字符串转换为json对象然后再交给CommonUtil 自定义工具类处理是否有字段为空执行CommonUtil类的hasAllRequired方法,传入请求的json对象和要验证的json的键,这里是username和password。1.首先将验证键字符串分割为 String[] colums =[“username”,“password”]2.再遍历colums字符串数组原创 2020-08-26 15:37:04 · 216 阅读 · 0 评论 -
springboot中导入react前端项目
1.前端项目使用webpack打包2.将打包的前端项目中的index.html放入spring工程下的resources>templates,剩下的资源文件放到resources>static下3.在pom.xml中加入thymeleaf(SpringBoot页面展示Thymeleaf)依赖方便复制: <dependency> <gro...原创 2019-09-06 20:00:13 · 2837 阅读 · 0 评论