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();