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

相关推荐
雨奔1 天前
Kubernetes DNS 完全指南:服务发现核心机制与实践
java·kubernetes·服务发现
逻辑驱动的ken1 天前
Java高频面试考点场景题14
java·开发语言·深度学习·面试·职场和发展·求职招聘·春招
阿冰冰呀1 天前
互联网大厂Java求职面试实录:谢飞机的“水货”之路
java·mybatis·dubbo·springboot·线程池·多线程·hashmap
水无痕simon1 天前
1.单机部署Nacos1.3.2
java
Java小生不才1 天前
spring AI文生图
java·人工智能·spring ai
苍煜1 天前
ThreadPoolExecutor线程池终极全解:同步异步判定+SpringBoot生产实战
java·开发语言·spring boot
c++之路1 天前
C++ 动态内存
java·jvm·c++
2301_800976931 天前
数据库的基本操作后续
java·数据库·sql
SECS/GEM1 天前
SECS/GEM如何实现越南现场自定义消息
java·服务器·数据库
lv__pf2 天前
集合框架1
java·开发语言