xuxueli пре 6 година
родитељ
комит
32467c273f

+ 0 - 12
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java Прегледај датотеку

@@ -4,8 +4,6 @@ import org.springframework.beans.factory.InitializingBean;
4 4
 import org.springframework.beans.factory.annotation.Value;
5 5
 import org.springframework.context.annotation.Configuration;
6 6
 
7
-import javax.annotation.PostConstruct;
8
-
9 7
 /**
10 8
  * xxl-job config
11 9
  *
@@ -87,14 +85,4 @@ public class XxlJobAdminConfig implements InitializingBean{
87 85
         return i18n;
88 86
     }
89 87
 
90
-    @PostConstruct
91
-    public void init() {
92
-        if(this.getLoginUsername().length()>18){
93
-            throw new IllegalArgumentException("username length greater than 18");
94
-        }
95
-
96
-        if(this.getLoginPassword().length()>18){
97
-            throw new IllegalArgumentException("password length greater than 18");
98
-        }
99
-    }
100 88
 }