使用Token机制,保证请求幂等
幂等有很多方案,但是个人觉得这个最好用,来一个示例方案先 我们使用Redis保存Token令牌,引入SpringBoot,Redis,ULID相关的依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <version>2.7.0</version> </depend...
收藏一波信创体系OA系统,可以的
它的官网: https://www.o2oa.net/ github: https://github.com/o2oa/o2oa?tab=readme-ov-file 收藏的目的,如有需要以后直接就能参考参考.
收藏一个Hyperf好用的ENUM
地址: https://github.com/lishuncoder/enums 没用过,但是收藏一波 提供两种枚举的应用,一种是对常规枚举类的加强和扩展,即枚举类扩展,继承原枚举类原生功能的基础上拓展了注解属性,出发点源自于一些枚举的值确实一致但意义却不一样的场景: tb_user.gender: 0 未知 1 男 2 女 tb_user.type: 0 普通 1 特殊类型1 2 特殊类型2 此时值确实一致,但需要的解释和描述却完全不一致,这是通过 const 常量的注解已经无法实现这个功能,或者只能将原 const 值 变为数组,这并不优雅,这时...
springboot3.0.7-redis配置记录下
配置redis一直报错,想都不用想肯定是版本原因,各种折腾终于解决 正确的配置能用版本, 记录下 <?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:schemaLocation="http://maven.apache.org/POM/4.0.0 https://mav...