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

相关推荐
qq_185198693 小时前
(Spring Bean + delegateExpression)实现http服务 的完整可运行项目
spring
小Ti客栈3 小时前
Spring Boot 集成 Springdoc-OpenAPI 与 Knife4j实现接口文档与可视化调试
java·spring boot·后端
Ai拆代码的曹操4 小时前
Spring 事务 REQUIRES_NEW 嵌套调用:连接池翻倍的秘密
java·后端·spring
动恰客流统计4 小时前
ReID边缘计算视觉统计:餐饮店客流增长的数字化破局路径
java·大数据·运维·人工智能
Ivanqhz5 小时前
Rust &‘static str浅析
java·前端·javascript·rust
weixin_419658318 小时前
Docker 搭建 Jenkins 服务
java·docker·jenkins
captain3768 小时前
多线程线程安全问题
java·java-ee
CoderYanger8 小时前
A.每日一题:1979. 找出数组的最大公约数
java·程序人生·算法·leetcode·面试·职场和发展·学习方法
灵极海8 小时前
LangChain4j RAG 实战完整指南:从入门到踩坑
java·langchain
yaoxin5211238 小时前
476. Java 反射 - 调用方法
java·开发语言