This commit is contained in:
ran.shang
2026-03-18 17:18:06 +08:00
parent e025b918d9
commit cb29084f97
6 changed files with 3 additions and 13980 deletions

View File

@@ -8,6 +8,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.io.ClassPathResource;
import com.senmesh.common.constant.CommonConstants;
@@ -15,6 +16,7 @@ import com.senmesh.common.constant.CommonConstants;
import toolgood.words.IllegalWordsSearch;
import toolgood.words.IllegalWordsSearchResult;
@Slf4j
public class SensitiveWordUtils {
static IllegalWordsSearch search;
@@ -28,7 +30,7 @@ public class SensitiveWordUtils {
list.add(line);
}
} catch (IOException e) {
throw new RuntimeException("sensi_words.txt加载失败");
log.error("sensi_words.txt加载失败");
}
search = new IllegalWordsSearch();
search.SetKeywords(list);

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.