参考:网站是怎么屏蔽脏话的呢:简单学会SpringBoot项目敏感词、违规词过滤方案_springboot 项目关键词过滤-优快云博客
【敏感词过滤】_wx60d2a462203aa的技术博客_51CTO博客
1、添加依赖
<dependency>
<groupId>com.github.houbb</groupId>
<artifactId>sensitive-word</artifactId>
<version>0.17.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
2、SensitiveConfig
@Configuration
public class SensitiveConfig {
@Aut

最低0.47元/天 解锁文章
1954

被折叠的 条评论
为什么被折叠?



