pac4j
发表于|更新于
|浏览量:
对付邪恶的特效药,就是跟邪恶战斗。——泰戈尔
分享一个java安全框架


相关推荐
2022-11-11
filterTree递归树过滤实现
二人同心,其利断金;同心之言,其臭如兰——《周易·系辞上》 引入依赖: 123456<!-- https://search.maven.org/artifact/io.github.vampireachao/stream-query --><dependency> <groupId>io.github.vampireachao</groupId> <artifactId>stream-core</artifactId> <version>${stream-query-version}</version></dependency> 使用: 1234567891011121314151617181920212223242526272829303132333435363738394041424344@Test void testFilterTree() { List<Student> studentTr...
2024-09-01
Apache-ShenYu支持namespace功能(三)
若我会见到你,事隔经年。我如何和你招呼,以眼泪,以沉默。——《春逝》 PR链接: [Improve] Rule and MetaData module adaptation namespace by VampireAchao · Pull Request #478 · apache/shenyu-dashboard · GitHub 本次主要是支持了Rule和MetaData部分的namespace功能 这里要注意的是别忘记切换namespace后,在componentDidUpdate中要进行判断 12345678componentDidUpdate(prevProps) { const { currentNamespaceId } = this.props; // 如果当前namespace变更 if (prevProps.currentNamespaceId !== currentNamespaceId) { // 重新按照当前`namespaceId`查询列表 this.query(); }...
2020-08-10
java巨大字符串截取
string转list,分段截取 比如传入rubenrubenruben和5,得到的list就是{"ruben","ruben","ruben"}这样的 1234567891011121314151617181920/** * @param initial 初始字符串 * @param interval 分段长度 * @return */ public static List<String> stringSplit(String initial, Integer interval) { List<String> result = new LinkedList<>(); StringBuilder tmp = new StringBuilder(initial); int length = tmp.length(); while (length > 0) { ...
2023-01-28
spring-batch批量处理
没有一个人能真正理解另一个人的烦恼或喜悦——舒伯特 按照文档:https://spring.io/guides/gs/batch-processing/ 新建一个项目 勾选Spring Batch以及HyperSQL Database 点击create 在resources下面新建我们的数据文件 sample-data.csv 12345Jill,DoeJoe,DoeJustin,DoeJane,DoeJohn,Doe schema-all.sql 1234567DROP TABLE people IF EXISTS;CREATE TABLE people ( person_id BIGINT IDENTITY NOT NULL PRIMARY KEY, first_name VARCHAR(20), last_name VARCHAR(20)); 然后新建一个Person业务类 12345678910111213141516171819202122232425262728293031323334353637package com.example....
2023-09-30
feign-reactive
晚饭少吃口,活到九十九。——钱大昕 https://github.com/openfeign/feign 目前feign不支持webflux、reactive 于是找到了一个三方库 https://github.com/kptfh/feign-reactive 基于Spring WebFlux的Reactive Feign客户端 安装: 12345678910111213141516171819202122232425262728293031323334<repositories> <repository> <id>bintray-kptfh-feign-reactive</id> <name>bintray</name> <url>https://dl.bintray.com/kptfh/feign-reactive</url> </repository></repositories>...<d...
2020-11-08
建造者模式
外观往往和事物的本身完全不符,世人都容易为表面的装饰所欺骗。——《威尼斯商人》 这两天开发中用到了建造者模式,写起来感觉挺爽的 以前我们创建一个javabean 12345678910111213141516171819202122232425262728293031/** * 自定义pojo */public static class Teacher { private String name; private Integer age; @Override public String toString() { return "Teacher{" + "name='" + name + '\'' + ", age=" + age + '}'; } public Strin...
