上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 118 下一页
摘要: 搭建一个多模块系统(一) 把项目分为三个模块,有一个父模块管理 testblog testblog-framework testblog-admin testblog-home testblog.pom <?xml version="1.0" encoding="UTF-8"?> <project 阅读全文
posted @ 2023-05-20 14:37 与f 阅读(28) 评论(0) 推荐(0) 编辑
摘要: springboot开启跨域spring security也开启跨域配置 浏览器 同源策略,导致跨域失败,添加了security框架后,因为安全框架有一系列的过滤器,即使springboot把跨域打开,security的过滤器也可以能拦截。 所以,如果要在服务器端设置,要改两处 方法一: 先开放sp 阅读全文
posted @ 2023-05-19 17:39 与f 阅读(542) 评论(0) 推荐(0) 编辑
摘要: ruoyi自定义登录中ThreadLocal的使用 (它的ThreadLocal封装在AuthenticationContextHolder) 登录代码: /** * 登录验证 * * @param username 用户名 * @param password 密码 * @param code 验证 阅读全文
posted @ 2023-05-19 09:46 与f 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Spring Security配置(包含WebSecurityConfigurerAdapter过时问题) pom.xml文件引入以下依赖 <!--spring security--> <dependency> <groupId>org.springframework.boot</groupId> 阅读全文
posted @ 2023-05-17 16:54 与f 阅读(858) 评论(0) 推荐(0) 编辑
摘要: 1. 引入相关依赖(略) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> 阅读全文
posted @ 2023-05-12 10:40 与f 阅读(45) 评论(0) 推荐(0) 编辑
摘要: C# 有Linq对list等数据的排序过滤等操作 java有stream() php也有第三方库phpLinq,或array_filter()、array_search()、array_map()等也行。 ..... 它们都是,配合一个方法或函数(可以匿名函数和lambda表达式),进行过滤. 相关 阅读全文
posted @ 2023-05-06 09:31 与f 阅读(15) 评论(0) 推荐(0) 编辑
摘要: php比较好的技术栈 laravel + laravel-admin(快速构建后台) : https://laravel-admin.org/ Dcat Admin 中文文档 (基于laravel-admin实现): https://learnku.com/docs/dcat-admin/2.x T 阅读全文
posted @ 2023-05-05 11:07 与f 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1. 前言 Apache Shiro是一个功能强大且易于使用的Java安全框架,提供了认证,授权,加密,和会话管理。 Shiro有三大核心组件: Subject: 即当前用户,在权限管理的应用程序里往往需要知道谁能够操作什么,谁拥有操作该程序的权利,shiro中则需要通过Subject来提供基础的当 阅读全文
posted @ 2023-05-04 11:13 与f 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 转: https://www.w3cschool.cn/springsecurity/fyc61ii5.html 阅读全文
posted @ 2023-05-04 10:41 与f 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 在最新、独立的 Spring Security 5.7 版本,还是更新了不少内容,之前的 WebSecurityConfigurerAdapter 已经被废弃了,大家在使用的时候,可以参考下面的配置文件。另外提醒一句,在最新的 Spring Boot 版本中的 Spring Security 并不一 阅读全文
posted @ 2023-04-27 16:38 与f 阅读(1328) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 118 下一页