rm
This commit is contained in:
@@ -8,6 +8,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
import com.senmesh.common.constant.CommonConstants;
|
import com.senmesh.common.constant.CommonConstants;
|
||||||
@@ -15,6 +16,7 @@ import com.senmesh.common.constant.CommonConstants;
|
|||||||
import toolgood.words.IllegalWordsSearch;
|
import toolgood.words.IllegalWordsSearch;
|
||||||
import toolgood.words.IllegalWordsSearchResult;
|
import toolgood.words.IllegalWordsSearchResult;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
public class SensitiveWordUtils {
|
public class SensitiveWordUtils {
|
||||||
|
|
||||||
static IllegalWordsSearch search;
|
static IllegalWordsSearch search;
|
||||||
@@ -28,7 +30,7 @@ public class SensitiveWordUtils {
|
|||||||
list.add(line);
|
list.add(line);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException("sensi_words.txt加载失败");
|
log.error("sensi_words.txt加载失败");
|
||||||
}
|
}
|
||||||
search = new IllegalWordsSearch();
|
search = new IllegalWordsSearch();
|
||||||
search.SetKeywords(list);
|
search.SetKeywords(list);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user