上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 43 下一页
摘要: 1.get请求在url中通过?指定参数 直接将其写在参数上即可获得 public String addUser1(String username,String password) { System.out.println("username is:"+username); System.out.pr 阅读全文
posted @ 2023-02-21 13:07 lwx_R 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1.pom.xml <!-- 图形验证码--> <dependency> <groupId>com.github.whvcse</groupId> <artifactId>easy-captcha</artifactId> <version>1.6.2</version> </dependency> 阅读全文
posted @ 2023-02-21 00:18 lwx_R 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1.使用fastJson 2.controller层 @PostMapping("") @ResponseBody public BaseResponse jsonFunction(@RequestBody String jsonData){ BaseResponse baseResponse = 阅读全文
posted @ 2023-02-21 00:12 lwx_R 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 1.下载layuiAdmin实例 2.修改std版本的views界面 3.实体管理界面 3.1 表单html <!-- 文章列表--> <div class="layui-card-body"> <div style="padding-bottom: 10px;"> <button class="l 阅读全文
posted @ 2023-02-21 00:03 lwx_R 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 1. 依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.10</version> </dependency> 2.service层 只有紧 阅读全文
posted @ 2023-01-30 18:23 lwx_R 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1.javabean对象 <div> <div th:text="${user.getName()}"></div> </div> 2.List集合 <div th:each="item:${articles}"> <div th:text="${item.getTitle()}"></div> < 阅读全文
posted @ 2023-01-30 15:55 lwx_R 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1.CSRF (Cross site request forgery) 跨站请求伪造,也被称为"OneClick Attack"或者Session Riding 通过伪造用户请求访问受信任站点的非法请求访问。 跨域:只要网络协议,ip 地址,端口中任何一个不相同就是跨域请求。 客户端与服务进行交互时 阅读全文
posted @ 2023-01-18 14:56 lwx_R 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1. 引入依赖 <dependency> <groupId>org.thymeleaf.extras</groupId> <artifactId>thymeleaf-extras-springsecurity5</artifactId> </dependency> <dependency> <gro 阅读全文
posted @ 2023-01-17 16:52 lwx_R 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1.引入依赖 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.18</version> </dependency> <dependency> <group 阅读全文
posted @ 2023-01-17 16:47 lwx_R 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1.@Secured 角色判断 1.1 开启注解 App启动类中加入注解 @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) 1.2 controller层下 @PostMapping("/toIndex 阅读全文
posted @ 2023-01-17 16:42 lwx_R 阅读(14) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 43 下一页