实用的java技术架构组件汇总

1.后端数据校验

引入依赖

xml 复制代码
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-validation</artifactId>
</dependency>

校验注解

jakarta.validation-api 规范提供如下:

size

hibernate-validator 扩展,提供如下:

uuid

给VO标注校验注解

给Controller参数标注 @Valid或 @Validated ;@Validated支持分组校验

2. 敏感词(非法词/脏字)检测过滤组件ToolGood.Words

https://github.com/toolgood/ToolGood.Words

3. 敏感词过滤脱敏组件sensitive-words-filter

https://github.com/hooj0/sensitive-words-filter

4. spingboot敏感信息加密组件jasypt

引入依赖

xml 复制代码
<dependency>
        <groupId>com.github.ulisesbocchio</groupId>
        <artifactId>jasypt-spring-boot-starter</artifactId>
        <version>3.0.5</version>
</dependency>

使用参考:https://github.com/ulisesbocchio/jasypt-spring-boot

相关推荐
用户83071968408210 分钟前
Spring Boot WebClient性能比RestTemplate高?看完秒懂!
java·spring boot
Assby2 小时前
从洋葱模型看Java与Go的设计哲学:为什么它们如此不同?
java·后端·架构
belhomme3 小时前
(面试题)Netty 线程模型
java·面试·netty
NE_STOP7 小时前
MyBatis-plus进阶之映射与条件构造器
java
玹外之音8 小时前
揭秘 Spring AI 文档切割:从"暴力分割"到"语义智能"的进阶之路
spring·openai·ai编程
Seven9710 小时前
NIO的零拷贝如何实现高效数据传输?
java
架构师沉默1 天前
别又牛逼了!AI 写 Java 代码真的行吗?
java·后端·架构
Java水解1 天前
微服务架构下Spring Session与Redis分布式会话实战全解析
后端·spring
后端AI实验室1 天前
我把一个生产Bug的排查过程,交给AI处理——20分钟后我关掉了它
java·ai