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

相关推荐
木木子99991 小时前
业务架构、应用架构、数据架构、技术架构
java·开发语言·架构
qq_5470261793 小时前
Flowable 工作流引擎
java·服务器·前端
鼓掌MVP4 小时前
Java框架的发展历程体现了软件工程思想的持续进化
java·spring·架构
编程爱好者熊浪5 小时前
两次连接池泄露的BUG
java·数据库
lllsure5 小时前
【Spring Cloud】Spring Cloud Config
java·spring·spring cloud
拽着尾巴的鱼儿5 小时前
fixed-bug:JPA 关联关系的对象序列化循环引用问题
spring·bug·jpa
鬼火儿5 小时前
SpringBoot】Spring Boot 项目的打包配置
java·后端
NON-JUDGMENTAL5 小时前
Tomcat 新手避坑指南:环境配置 + 启动问题 + 乱码解决全流程
java·tomcat
chxii6 小时前
Maven 详解(上)
java·maven
李少兄6 小时前
IntelliJ IDEA 远程调试(Remote Debugging)教程
java·ide·intellij-idea