Browse Source

//test

private_deployment
xhxu 2 years ago
parent
commit
ec7b15820f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      suimangVideo/src/main/java/com/iformall/language/LanguageDetect.java

+ 1
- 1
suimangVideo/src/main/java/com/iformall/language/LanguageDetect.java View File

@@ -13,7 +13,7 @@ public class LanguageDetect {
private static void initDetector(){
if(detect == null){
try {
DetectorFactory.loadProfile(Thread.currentThread().getContextClassLoader().getResource("profiles").getPath());
DetectorFactory.loadProfile(LanguageDetect.class.getClassLoader().getResource("profiles").getPath());
detect = DetectorFactory.create();
} catch (LangDetectException e) {
e.printStackTrace();


Loading…
Cancel
Save