摘要: 1 2 3 4 5 6 7 8 9 10 11 阅读全文
posted @ 2021-08-17 23:28 yub4by 阅读(45) 评论(0) 推荐(0)
摘要: package com.haifei.service.impl; import com.haifei.mapper.UserMapper; import com.haifei.pojo.User; import com.haifei.service.UserService; import org.s 阅读全文
posted @ 2021-08-17 14:13 yub4by 阅读(56) 评论(0) 推荐(0)
摘要: 1 不加密 或 2 加密 首先生成密文 手动修改数据库数据 修改配置文件 去掉{noop} 运行测试 3 小问题 (7条消息) SpringSecurity /favicon.ico请求 404问题_混沌人的博客-CSDN博客 整合SpringSecurity的时候,发现输入正确用户名密码校验通过后 阅读全文
posted @ 2021-08-17 14:11 yub4by 阅读(81) 评论(0) 推荐(0)
摘要: 前面的案例我们的账号信息是直接写在配置文件中的,这显然是不太好的,我们来介绍小如何实现和数据库中的信息进行认证 1 添加数据库相关的依赖 <!--数据库相关依赖--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</a 阅读全文
posted @ 2021-08-17 12:45 yub4by 阅读(50) 评论(0) 推荐(0)
摘要: 为什么系统默认的登录页面提交没有CRSF拦截的问题呢?(原因如上) 我自定义的认证页面没有这个信息怎么办呢?两种方式: (1)关闭CSRF拦截 该方法实际降低了系统的安全性 (2)使用CSRF防护 在页面中添加security对应的taglib 阅读全文
posted @ 2021-08-17 10:43 yub4by 阅读(411) 评论(0) 推荐(0)
摘要: <%-- Created by IntelliJ IDEA. User: yubaby Date: 2021/8/16 Time: 17:58 To change this template use File | Settings | File Templates. --%> <%@ page co 阅读全文
posted @ 2021-08-17 10:41 yub4by 阅读(55) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-17 09:16 yub4by 阅读(29) 评论(0) 推荐(0)