rm
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user