From dd03ea8753ebf16a2b806bd316488500e759047c Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Fri, 8 Mar 2024 21:41:37 +0800 Subject: [PATCH] feat: SensitiveWords filter --- .../luoo/comment/sensitiveword/SensitiveWordService.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/luoo_comment/src/main/java/com/luoo/comment/sensitiveword/SensitiveWordService.java b/luoo_comment/src/main/java/com/luoo/comment/sensitiveword/SensitiveWordService.java index c75aca4..a103c3a 100644 --- a/luoo_comment/src/main/java/com/luoo/comment/sensitiveword/SensitiveWordService.java +++ b/luoo_comment/src/main/java/com/luoo/comment/sensitiveword/SensitiveWordService.java @@ -8,14 +8,7 @@ public class SensitiveWordService { @Autowired private SensitiveWordBs sensitiveWordBs; - /** - * 更新词库 - *
- * 每次数据库的信息发生变化之后,首先调用更新数据库敏感词库的方法。 - * 如果需要生效,则调用这个方法。 - *
- * 说明:重新初始化不影响旧的方法使用。初始化完成后,会以新的为准。 - */ + public void refresh() { // 每次数据库的信息发生变化之后,首先调用更新数据库敏感词库的方法,然后调用这个方法。 sensitiveWordBs.init();