上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 47 下一页
摘要: package com.mytest; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; pub 阅读全文
posted @ 2023-08-22 22:01 iTao0128 阅读(42) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2023-08-22 21:29 iTao0128 阅读(37) 评论(0) 推荐(0)
摘要: 工具计算(PS或者FW) 以fw为例,按照2倍图缩放 1.导入图片后,选中图片,下方显示整张图片的尺寸大小(208x655) 2.修改宽大小为原来的一半:104 回车 3.测量图标大小(23x23),坐标为(59x194) 相关代码 <body> <div class="search-index"> 阅读全文
posted @ 2023-08-20 22:44 iTao0128 阅读(35) 评论(0) 推荐(0)
摘要: flex布局原理 flex 是 flexible Box 的缩写,意为"弹性布局",用来为盒状模型提供最大的灵活性,任何一个容器都可以指定为 flex 布局。 当我们为父盒子设为 flex 布局以后,子元素的 float、clear 和 vertical-align 属性将失效。 flex布局又叫伸 阅读全文
posted @ 2023-08-20 21:49 iTao0128 阅读(56) 评论(0) 推荐(0)
摘要: 1. 安装 vetur 和 vue-helper 两个插件2. 打开设置 --> 扩展 --> vue helper, 然后在右边找到在 settings.json 中编辑,点击,添加或修改下面的配置: "vue-helper.alias": { "@": "src" }, "vue-helper. 阅读全文
posted @ 2023-08-20 10:23 iTao0128 阅读(2282) 评论(0) 推荐(0)
摘要: 我们需要自定义一个过滤器,这个过滤器会去获取请求头中的token,对token进行解析取出其中的userid。 使用userid去redis中获取对应的LoginUser对象。 然后封装Authentication对象存入SecurityContextHolder package com.secur 阅读全文
posted @ 2023-08-19 22:21 iTao0128 阅读(31) 评论(0) 推荐(0)
摘要: 自定义登陆接口,然后让SpringSecurity对这个接口放行,让用户访问这个接口的时候不用登录也能访问。 在接口中我们通过AuthenticationManager的authenticate方法来进行用户认证,所以需要在SecurityConfig中配置把AuthenticationManage 阅读全文
posted @ 2023-08-18 22:51 iTao0128 阅读(176) 评论(0) 推荐(0)
摘要: 默认使用的PasswordEncoder要求数据库中的密码格式为:{id}password 。它会根据id去判断密码的加密方式。但是我们一般不会采用这种方式。所以就需要替换PasswordEncoder。 我们一般使用SpringSecurity为我们提供的BCryptPasswordEncoder 阅读全文
posted @ 2023-08-17 22:02 iTao0128 阅读(36) 评论(0) 推荐(0)
摘要: 自定义一个UserDetailsService,让SpringSecurity使用我们的UserDetailsService。我们自己的UserDetailsService可以从数据库中查询用户名和密码 mapper package com.security.mapper; import com.b 阅读全文
posted @ 2023-08-17 21:36 iTao0128 阅读(558) 评论(0) 推荐(0)
摘要: 登录 ①自定义登录接口 ​ 调用ProviderManager的方法进行认证 如果认证通过生成jwt ​ 把用户信息存入redis中【userId作为Key,用户信息作为Value】 ​ ②自定义UserDetailsService ​ 【因为原本这个接口的实现类是在内存中查询用户信息,不符合我们的 阅读全文
posted @ 2023-08-14 22:27 iTao0128 阅读(28) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 47 下一页