实用的java技术架构组件汇总
1.后端数据校验
引入依赖
<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
引入依赖
<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