实用的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

相关推荐
Flittly11 小时前
【AgentScope Java新手村系列】(16)从RAG到多路检索
java·spring boot·spring
小兔崽子去哪了11 小时前
Java 生成二维码解决方案
java·后端
人活一口气16 小时前
从JVM调优到MCP协议:Java全栈技术体系深度总结与企业级架构实践
java·spring boot
NE_STOP18 小时前
Vibe Coding -- 完整项目案例实操
java
荣码18 小时前
GraphRAG:普通RAG只能回答"点"的问题,我踩了4个坑才搞懂
java·python
SimonKing18 小时前
Google第三方授权登录
java·后端·程序员
明月光81818 小时前
从一行 @Builder 说起:重新拾起 Java 的 Lombok、注解与 Builder 模式
java
考虑考虑1 天前
Mybatis实现批量插入
java·后端·mybatis
咖啡八杯1 天前
GoF设计模式——中介者模式
java·后端·spring·设计模式
fanly111 天前
Surging AI Agent 完整产品介绍
微服务·microservice